Author Topic: What are different steps to sort an array in PHP?  (Read 168 times)

Offline Ciaran

  • 1
  • Newbie
  • *
  • Posts: 0
  • Karma: +0/-0
    • View Profile
What are different steps to sort an array in PHP?
« on: November 17, 2016, 07:04:54 PM »
Hello everyone, I would like to ask you a little problem for the members of the community, what are different steps to sort an array in php? Thank you for answering the question.



Offline Alan

  • 1
  • Newbie
  • *
  • Posts: 0
  • Karma: +0/-0
    • View Profile
Re: to sort an array in PHP?
« Reply #1 on: January 09, 2018, 06:23:08 PM »
There are many ways to sort an array in PHP, the easiest being to use the sort() function built into PHP. This sort function is quick but has it's limitations, especially when sorting things like dates as PHP usually guesses which value is higher than the other and can produce odd results. However, there are plenty of sorting algorithms available than can allow you to sort an array in any way you want.


 

Sitemap 1 2 3 4 5 6 7 8 9