PHP » GoLang |
login |
register |
about
|
ksort(PHP 4, PHP 5, PHP 7) ksort — Sort an array by key Description
bool ksort
( array
&$array
[, int $sort_flags = SORT_REGULAR
] )Sorts an array by key, maintaining key to data correlations. This is useful mainly for associative arrays. Parameters
Return Values
Returns Examples
Example #1 ksort() example
<?php The above example will output: a = orange b = banana c = apple d = lemon See Also
|
more
Recently updated
more
Most requested
more
Last requests
|