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 (array_keys($myArray) as $key) {
    $dim = & $myArray[$key];
    uksort ($dim, "strcasecmp");
  }

address operator is hard to come by in the docs I have (PHP.chm)

-- 
Richard

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to