wc_uasort_comparison()
User to sort two values with ausort.
Хуков нет.
Возвращает
int
.
Использование
wc_uasort_comparison( $a, $b );
- $a(int) (обязательный)
- First value to compare.
- $b(int) (обязательный)
- Second value to compare.
Список изменений
С версии 3.5.1 | Введена. |
Код wc_uasort_comparison() wc uasort comparison WC 7.7.0
function wc_uasort_comparison( $a, $b ) { if ( $a === $b ) { return 0; } return ( $a < $b ) ? -1 : 1; }