(Ergänzung)
geht auch:
<?php
$foo= function() { print 'You called $foo' . "\n"; };
$foo();
?>
ausgeführt:
fastix@trainer:/tmp$ php test.php
You called $foo
Jörg Reinholz
(Ergänzung)
geht auch:
<?php
$foo= function() { print 'You called $foo' . "\n"; };
$foo();
?>
ausgeführt:
fastix@trainer:/tmp$ php test.php
You called $foo
Jörg Reinholz