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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to