I have a conditional that gives my array the value of 2 if its empty otherwise the value will be 1, what I want is to sort this bidimensinal by the value of the associative index for example
$arr[$n]["key"] = 1;
$arr[$n]["key"] = 1;
$arr[$n]["key"] = 1;
$arr[$n]["key"] = 2;
$arr[$n]["key"] = 2;
What I want to do is first print the number 1's and then the number 2's
I've tried all the methods on this page and nothing works.. please help me. Thanks!