Re: [4.3.4] Can't ksort a subarray

From: Date: Thu, 25 Mar 2004 16:46:06 +0000
Subject: Re: [4.3.4] Can't ksort a subarray
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-181496@lists.php.net to get a copy of this message
while (list($key,$dim2) = each ($A)) { uksort ( $A[ $key ] , "strcasecmp"); } print_r ($A); $dim2 will not change $A[ $key ], so you will have to change your script to alter them directly. -- red [....] > I have this little code. > I want all arrays sorted case insensitive key order, but only the first > dimension gets key sorted properly > > Thanks > -- > Richard A. DeVenezia [...]

« previous php.general (#181496) next »