(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
 nicht angemeldet
 nicht angemeldet(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