note 20043 rejected from function.sort by betz

From: Date: Tue, 14 May 2002 19:02:36 +0000
Subject: note 20043 rejected from function.sort by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-30641@lists.php.net to get a copy of this message
Single-element arrays can be case-insensitive sorted using: usort($dir, create_function('$a,$b','return strcasecmp($a[0],$b[0]);')); Richard Mitchell had this in place nearly a year ago, but it's hidden well. Hope bringing it out into the open saves someone else an hour of frustration.

« previous php.notes (#30641) next »