A WordPress-centric search engine for devs and theme authors



_usort_by_first_member ›

Since2.9.0
Deprecatedn/a
_usort_by_first_member ( $a, $b )
Access:
  • private
Parameters: (2)
  • (array) $a
    Required: Yes
  • (array) $b
    Required: Yes
Returns:
  • (int)
Defined at:
Codex:

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

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



Source

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