Red Wingate wrote:
> 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
>
Like thus:
uksort ($myArray, "strcasecmp");
foreach (arr
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
2 matches
Mail list logo