26374PHP: How to Sort an Arrayhttp://www.webcheatsheet.com/php/sorting_array.phpIt is often necessary to arrange the elements in an array in numerical order from highest to lowest values (descending order) or vice versa (ascending order). If the array contains string values, alphabetical order may be needed. Sorting a one-dimensional arrays is quite easy.PHP > Tips and Tutorials > Introduction to PHPOct 15, 2006WebCheatSheet
Ok, so from the prototype above, we can see the function explode() (a function is denoted by the () after the name as this is where you put any parameters) will create an array (oh the joy):
Functions are similar to variables in the sense that they hold information within them and can be executed once or unlimited times by a PHP script. PHP has many functions already created with a specific job or function a pre installed function we have alreay worked with in this tutorial is echo(). You can create your own function too.
we will be looking at ARRAYS. Arrays are group of items sharing the same characteristics such as CAR MODELS,BASEBALL TEAM and TYPES OF HOUSES.Basically its used to group many variables and stored in to another variable.
It is often necessary to arrange the elements in an array in numerical order from highest to lowest values (descending order) or vice versa (ascending order). If the array contains string values, alphabetical order may be needed. Sorting a one-dimensional arrays is quite easy.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.