webguync Posted August 9, 2008 Share Posted August 9, 2008 How would I print an array such as the following in alphabetical order? $fruits= array(Apples, Strawberries, Oranges, Bananas, Pears); Link to comment https://forums.phpfreaks.com/topic/118868-print-array-in-alphabetical-order/ Share on other sites More sharing options...
DarkWater Posted August 9, 2008 Share Posted August 9, 2008 I hope you have ' ' around those strings...Anyway, check out the sort function. Link to comment https://forums.phpfreaks.com/topic/118868-print-array-in-alphabetical-order/#findComment-612128 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.