Posted by StevePBurgess on 06/26/06 21:50
Janwillem Borleffs wrote: > > > // $key = 'Freq'; > $key = 'Name'; > > function callback($a, $b) { > global $key; > if ($a[$key] == $b[$key]) return 0; > return $a[$key] > $b[$key] ? 1 : -1; > } > uasort($array, 'callback'); > > Brilliant - many thanks. Steve
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming