peri Posted September 23, 2008 Share Posted September 23, 2008 I've got a 2d array that looks like this: array(3) { ["5F"]=> array(6) { ["pid"]=> int(234) ["name"]=> string(7) "n/a n/a" } ["52C"]=> array(6) { ["pid"]=> int(42) ["name"]=> string(7) "n/a n/a" } ["3F"]=> array(6) { ["pid"]=> int(4452) ["name"]=> string(7) "n/a n/a" } } How do I sort it so that they keys appear in the order: 3F, 5F, 52C? Link to comment https://forums.phpfreaks.com/topic/125526-sorting-help/ Share on other sites More sharing options...
jonsjava Posted September 23, 2008 Share Posted September 23, 2008 look at ksort Link to comment https://forums.phpfreaks.com/topic/125526-sorting-help/#findComment-649026 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.