note 8181 deleted from function.asort by felipe

From: Date: Mon, 21 Jul 2008 01:14:09 +0000
Subject: note 8181 deleted from function.asort by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-142378@lists.php.net to get a copy of this message
Note Submitter: odeen at gmx dot de ---- hi the 2d arry sort works good for me, but you should use strtolower() for the right alphabetical order, like this:for ($index = 0; $index < strlen ($s1); $index++) { /** ** $s1 comes after $s2 **/ if (strtolower($s1[$index]) > strtolower($s2[$index])) return ($order); /** ** $s1 comes before $s2 **/ if (strtolower($s1[$index]) < strtolower($s2[$index])) return (1 - $order); } have fun olli

« previous php.notes (#142378) next »