PHP array sorting
In this video we will shortly consider array sorting in php. Array sorting is very important. In php there are a lot of functions for sorting arrays. They satisfy all needs for sorting (sorting arrays by asc or desc order, keys sorting)
Also we will write little code, which we make sorting array with bubble sort method. This method becomes obsolete, because there a lot of another useful functions for sorting arrays. For homework I offer you to sort array by asc order, by the way, first off all even numbers must be then odd (you can use build-in php functions).
0 Comments