Created
April 17, 2018 19:52
-
-
Save nixonmedia/1bd77647158f42e92f260d02d9afe746 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function resortbrands($a,$b){ | |
$a = preg_replace('/(\*|\.){2,}/', '$1', $a); | |
$b = preg_replace('/(\*|\.){2,}/', '$1', $b); | |
return strcmp($a,$b); | |
} | |
uasort($package, 'resortbrands'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment