You are here

public function ArrayObject::uasort in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-stdlib/src/ArrayObject.php \Zend\Stdlib\ArrayObject::uasort()

Sort the entries with a user-defined comparison function and maintain key association

Parameters

callable $function:

Return value

void

File

vendor/zendframework/zend-stdlib/src/ArrayObject.php, line 379

Class

ArrayObject
Custom framework ArrayObject implementation

Namespace

Zend\Stdlib

Code

public function uasort($function) {
  if (is_callable($function)) {
    uasort($this->storage, $function);
  }
}