|
|
![]() |
PHP sort
Definition and Usage The sort() function sorts an array by the values. This function assigns new keys for the elements in the array. Existing keys will be removed. This function returns TRUE on success, or FALSE on failure. Syntax sort(array,sorttype) array : Required. Specifies the array to sort sorttype : Optional. Specifies how to sort the array values. Possible values: * SORT_REGULAR - Default. Treat values as they are (don't change types) * SORT_NUMERIC - Treat values numerically * SORT_STRING - Treat values as strings * SORT_LOCALE_STRING - Treat values as strings, based on local settings <?php
The output of the code above will be: Array
Related posts & websites : moderator (2008-08-02 12:29:10) PHP arsort Definition and Usage The arsort() function sorts an array by the values in reverse order. The valu(...) moderator (2008-08-02 12:23:12) PHP asort Definition and Usage The asort() function sorts an array by the values. The values keep their or(...) moderator (2008-08-02 12:15:57) PHP krsort Definition and Usage The krsort() function sorts an array by the keys in reverse order. The va(...) moderator (2008-08-02 12:10:15) PHP ksort Definition and Usage The ksort() function sorts an array by the keys. The values keep their (...)
[Buzz]
[Discussions]
[Seo forums]
[Meet people]
[Directory]
[Last posts] [Games online] [Register] [Help] [About] |
|
ADVANSTARTECH FICGS is also a Free Internet Correspondence Games Server, where you can play chess online for free in rated class tournaments and a unique correspondence chess world championship.
Feel free to link to FICGS to get referer links. Chess is as much a mystery as women. (Purdy) |