Skip to content

Instantly share code, notes, and snippets.

@stefpe
Last active April 15, 2019 12:30
Show Gist options
  • Save stefpe/c090101411eb0e208c67c344ae591d65 to your computer and use it in GitHub Desktop.
Save stefpe/c090101411eb0e208c67c344ae591d65 to your computer and use it in GitHub Desktop.
<?php
$a = 'oldValue';
extract(
[
'a' => 'test',
'b' => 'foo'
],
EXTR_SKIP
);
printf("%s => %s", $a, $b);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment