NYCPHP Meetup

NYPHP.org

[nycphp-talk] Inline Functions

Mark Armendariz nyphp at enobrev.com
Wed Sep 1 14:52:52 EDT 2004


I've been stumped by a question of a fellow freelancer today.  Anyone know
if it's possible in php to do something like this:

usort($array, function($a, $b) {
     if($a == $b) return 0;
     return ($a < $b) ? -1 : 1;
});

Thanks!

Mark




More information about the talk mailing list