ArrayObject asort() Function in PHP
The asort() function of the ArrayObject class in PHP is used to sort all of the entries of the ArrayObject according to the values. The elements are arranged according to the values keeping the maintaining the association of the keys with the value.
Parameters: This function does not accepts any parameters.
Return Value: This function does not returns any value.
Below programs illustrate the above function:
ArrayObject Object ( [storage:ArrayObject:private] => Array ( [b] => are => awesome [a] => geeks ) )
ArrayObject Object ( [storage:ArrayObject:private] => Array ( => gfg [b] => to [a] => welcome ) )
My Personal Notes arrow_drop_up
Please Login to comment...