Created
November 24, 2014 12:07
-
-
Save luispinto23/99bb79a9de2776adedec to your computer and use it in GitHub Desktop.
PHP array sort by key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
usort($arrayFoo, function($a, $b) { | |
return $a['ordemBar'] - $b['ordemBar']; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment