daydreamer Posted September 6, 2008 Share Posted September 6, 2008 I am trying to sort an array by keys. The keys are strings. I tried ksort($array); But I want to sort alphabetically from a-z. The output I get puts a at the bottom, c at the top and z in the middle! I have also tried ksort($array, SORT_STRING); thanks Link to comment https://forums.phpfreaks.com/topic/123007-sort-arrays-by-key/ Share on other sites More sharing options...
daydreamer Posted September 6, 2008 Author Share Posted September 6, 2008 ok found the problem some are lower case and some arent. Link to comment https://forums.phpfreaks.com/topic/123007-sort-arrays-by-key/#findComment-635165 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.