|
ArrayObject::uksortSort the entries by keys using a user-defined comparison function Description
public void ArrayObject::uksort
( callable
$cmp_function
)This function sorts the keys of the entries using a user-supplied comparison function. The key to entry correlations will be maintained. Parameters
Return ValuesNo value is returned. Examples
Example #1 ArrayObject::uksort example
<?php The above example will output: an apple: 3 a banana: 4 the Earth: 2 John: 1 See Also
|