WordPress开发者和主题制作者的搜索引擎



_usort_by_first_member ›

Since2.9.0
已弃用n/a
_usort_by_first_member ( $a, $b )
访问:
  • private
参数: (2)
  • (array) $a
    Required: Yes
  • (array) $b
    Required: Yes
返回:
  • (int)
定义在:
文档:

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

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



源码

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