Search
Generic filters
Exact matches only
  • Sort files numerically – natsort

    18th March 2014

    Php - Strings

    php codehaven

    When showing files, sometimes they dont go in order especially if they have numbers in, such as 2.jpg and 20.jpg.
    So heres the answer…

    You could also have used just sort($array1)

    Was this code snippet helpful?

    Comment on this Code Snippet?