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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.