Created
April 3, 2014 14:07
-
-
Save uzulla/9955024 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$foo = 'ふー'; | |
$bar = 'ばー'; | |
$func1 = generate($foo,$bar); | |
// $app->get($key, generate($foo, $bar)); | |
$foo = "FOOO!!!"; | |
$func2 = generate($foo,$bar); | |
$func1(); | |
$func2(); | |
function generate($foo, $bar){ | |
return function () use ($foo, $bar){ | |
echo $foo; | |
echo $bar; | |
echo PHP_EOL; | |
}; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment