Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/Zend/tests/ |
Current File : //proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/Zend/tests/call_user_func_003.phpt |
--TEST-- Testing call_user_func() with closures --FILE-- <?php $foo = function() { static $instance; if (is_null($instance)) { $instance = function () { return 'OK!'; }; } return $instance; }; var_dump(call_user_func(array($foo, '__invoke'))->__invoke()); var_dump(call_user_func(function() use (&$foo) { return $foo; }, '__invoke')); ?> --EXPECTF-- string(3) "OK!" object(Closure)#%d (1) { ["static"]=> array(1) { ["instance"]=> object(Closure)#%d (0) { } } }
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare