The What
Description
This construct, ksort
, sorts the given array by it’s keys. It preserves the key-to-value relationship.
Parameters
array_to_be_sorted
- The array to be sorted.
sort_flags
- optional You can change the behavior of the sorting by changing this optional flag parameter. See the options here.
Return Values
Returns TRUE
if the sort was successful; else you’ll get a FALSE
back.
Don’t repeat yourself. Don’t repeat yourself. Don’t repeat yourself.
More coming soon…keep checking back.