wc_ascii_uasort_comparison()
Sort values based on ascii, useful for special chars in strings.
Хуков нет.
Возвращает
int.
Использование
wc_ascii_uasort_comparison( $a, $b );
- $a(строка) (обязательный)
- First value.
- $b(строка) (обязательный)
- Second value.
Код wc_ascii_uasort_comparison() wc ascii uasort comparison WC 10.7.0
function wc_ascii_uasort_comparison( $a, $b ) {
$a = remove_accents( $a );
$b = remove_accents( $b );
return strcmp( $a, $b );
}