©
Dokumen ini menggunakan Manual laman web PHP Cina Lepaskan
(PHP 5 >= 5.2.0)
ArrayIterator::uasort — User defined sort
$cmp_function
)Sort the entries by values using user defined function.
本函数还未编写文档,仅有参数列表。
cmp_function
The compare function used for the sort.
没有返回值。
[#1] Massimiliano Arione [2015-11-05 15:35:55]
Even if documentation says that $cmp_function must be a string, this method works with a Callable also.
Example:
<?php
$iterator->uasort([$this, 'usort']); // 'usort' here is a method in the same class