If you have sub-directories named 1 , 3 , 5 , 10
they will be arranged like this : 10, 1, 3, 5
To get them displaying like this 1, 3, 5, 10 use the following code
1 2 3 4 |
$images = glob($directory . "*.docx"); natsort($images); |
If you have sub-directories named 1 , 3 , 5 , 10
they will be arranged like this : 10, 1, 3, 5
To get them displaying like this 1, 3, 5, 10 use the following code
1 2 3 4 |
$images = glob($directory . "*.docx"); natsort($images); |
© 2022 CODEHAVEN