Register | Log In  

Sorting things out using PHP

By Mario
Dec, 23rd 2008 02:56 PM (14:56)

To sort an array in PHP you will need to use the sort function.


Example:


image hosted at Game Apollo

The code above will output:

Array (

[0] = Also, Santa isn't real

[1] = Superman and Batman aren't real either

[2] =
Timmy, you've been adopted

[3] =
That action figure we promised to buy you... well... it ain't gonna happen

[4] =
You're Timmy

)


So, if you need to sort things out in PHP, use the sort function! :D

Comments, listed from newest to oldest, 1 in total.
You need to register or log in in order to post comments.
avatar
MrFunsocks
GA Management
Aug, 23rd 2009 09:07 AM (09:07)


But how can I call it up for specific parts?? print($things[1]) ?