|
Posted by Ewoud Dronkert on 10/27/34 11:33
pauld wrote:
> the keys in the assoc array and the order id like then to appear are
> ('21', 'NC2', 'NC4', '28', '35', '40', '50', '60', '80', '100')
$oxchr = array('21', 'NC2', 'NC4', '28', '35', '40', '50', '60', '80',
'100');
$oxord = array_flip($oxchr);
function oxkeysort($k1, $k2) {
global $oxord;
return $oxord[$k1] - $oxord[$k2];
}
uksort($val, 'oxkeysort');
--
E. Dronkert
Navigation:
[Reply to this message]
|