Skip to content

Instantly share code, notes, and snippets.

@edgarsandi
Last active August 29, 2015 14:15
Show Gist options
  • Save edgarsandi/1eee2737d49f5f3dc764 to your computer and use it in GitHub Desktop.
Save edgarsandi/1eee2737d49f5f3dc764 to your computer and use it in GitHub Desktop.
uniform-variable-syntax
<?php
$a = function($param) {
return function() use ($param) {
return function() use($param) {
return ++$param;
};
};
};
echo $a(45)()() . PHP_EOL;
echo 'ou se preferir' . PHP_EOL;
echo ($a(45))()() . PHP_EOL;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment