Re: PATCH: anonymous functions in PHP

From: Date: Mon, 19 Mar 2007 08:39:10 +0000
Subject: Re: PATCH: anonymous functions in PHP
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-28414@lists.php.net to get a copy of this message
Am 19.03.2007 um 00:41 schrieb Wez Furlong:
We've been daydreaming about the ability to do something like this in PHP: $data = array("zoo", "orange", "car", "lemon", "apple"); usort($data, function($a, $b) { return strcmp($a, $b); }); var_dump($data); # data is sorted alphabetically So, the question is, do we want this in PHP?
Oh yes. Please. Please. Please :) David

« previous php.internals (#28414) next »