Re: Re: PATCH: anonymous functions in PHP
| From: | Stanislav Malyshev | Date: | Thu, 20 Dec 2007 17:16:55 +0000 |
| Subject: | Re: Re: PATCH: anonymous functions in PHP | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-34143@lists.php.net to get a copy of this message | ||
being able to do the following (and not to worry about runtime compilation) is a good reason on it's own: array_filter($my_data, function($test){ return 3 === ($test % 4) });What's wrong with regular functions? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com