PHP funkce usort()
Dostupnost ve verzích: PHP 4.0
Sort an array by values using a user-defined comparison function
Parametry
| Parametr | Datový typ | Výchozí hodnota | Poznámka |
|---|---|---|---|
$array |
array |
není | The input array. |
$cmp_function |
callback |
není | The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second. |
Návratové hodnoty
bool
vrátí true v případě úspěchu, jinak false v případě neúspěchu.