Can someone tell me how to sort an array containing file names starting with numbers? Since the lines starting with 11, 12, 13, etc., are considered below 2, he cites my results as follows:
[0] "1. File one.pdf"
[1] "11. File eleven.pdf"
[2] "12. File twelve.pdf"
[3] "2. File two.pdf"
[4] "3. File three.pdf"
Is there anything I can do to sort them correctly?
string sorting arrays php numbers
Tim
source share