Sorts a multidimensional array by first member of each top level member.
Description
Used by uasort() as a callback, should not be used directly.
Parameters
$a
arrayrequired$b
arrayrequired
Source
function _usort_by_first_member( $a, $b ) {
return strnatcasecmp( $a[0], $b[0] );
}
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.