DEV Community

Discussion on: Sorting multidimensional PHP arrays by object values with accented character

Collapse
 
jamesrweb profile image
James Robb

Nice, one thing I’d change is to get the characters by char code instead of manually writing them out because then you can’t miss any by accident if you use char code ranges for each language.

Collapse
 
wlarch profile image
William L'Archeveque

Thanks, that is a good idea. The characters array was found somewhere on the Internet and did fit my needs for French accented characters. Although, you can find characters for multiple others languages in it. Getting those by char code would be optimal!