wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



_sort_name_callback › WordPress Function

Depuis3.1.0
Dépréciéen/a
_sort_name_callback ( $a, $b )
Accès:
  • private
Paramètres: (2)
  • (array) $a First array.
    Requis: Oui
  • (array) $b Second array.
    Requis: Oui
Retourne:
  • (int)
Défini(e) dans:
Codex:

Callback to sort array by a 'name' key.



Source

function _sort_name_callback( $a, $b ) {
	return strnatcasecmp( $a['name'], $b['name'] );
}