Uma área de pesquisa sobre o WordPress para devs e autores do tema



_usort_by_first_member ›

Desde2.9.0
Obsoleton/a
_usort_by_first_member ( $a, $b )
Acesso:
  • private
Parâmetros: (2)
  • (array) $a
    Required: Yes
  • (array) $b
    Required: Yes
Retorna:
  • (int)
Definido em:
Codex:

Sorts a multidimensional array by first member of each top level member

Used by uasort() as a callback, should not be used directly.



Fonte

function _usort_by_first_member( $a, $b ) {
	return strnatcasecmp( $a[0], $b[0] );
}