note 106780 deleted from function.create-function by thiago
| From: | thiago@php.net | Date: | Tue, 06 Dec 2011 12:58:20 +0000 |
| Subject: | note 106780 deleted from function.create-function by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-184928@lists.php.net to get a copy of this message | ||
Note Submitter: Mino
----
Tiny note:
below is written that in PHP 5.3 you can use anonymous function like this
>> usort($MyArray,function($a,$b){return -1;});
The same could be achieved since php 4.0.1 with the following syntax ( less sexy but equally
effective):
>> usort($MyArray,create_function('$a,$b',"return -1;"));