Sort array alphabetically in PHP

ncusa367

New Member
Messages
8
Reaction score
0
Points
0
Hey, how do I sort the contents of an array in php alphabetically, while ignoring other characters like " and <.
 

LHVWB

New Member
Messages
1,308
Reaction score
0
Points
0
Use some code like this.

PHP:
sort($array, SORT_NUMERIC);

The optional second thing that you are passing to the sort() function means that will sort them numerically, which for some odd reason seems to ignore symbols. ;)
 
Top