note 106109 rejected from functions.anonymous by danbrown
| From: | danbrown@php.net | Date: | Tue, 11 Oct 2011 15:59:53 +0000 |
| Subject: | note 106109 rejected from functions.anonymous by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-183791@lists.php.net to get a copy of this message | ||
Note Submitter: darkdevine at hotmail dot de
----
I thought this might work:
<?php
$func = function( $msg ) use( &$func ) {
echo $msg;
return $func;
}
$func( 'This' )( 'doesn\'t' )( 'work' )( 'sadly :(' );
?>
It doesn't