Hello everyone,
i've got a question about arrays. Lets say that i've got 3 different arrays. here is the sample source:
<?
$value1 = 1;
$value2 = 2;
$value3 = 2;
$value4 = 1;
$value5 = 3;
$value6 = 3;
$value7 = 1;
$value8 = 4;
$value9 = 4;
$arr1 = array ($value1, $value2, $value3);
$arr2 = array ($value4, $value5, $value6);
$arr3 = array ($value7, $value8, $value9);
$bigarr = array ($arr1, $arr2, $arr3);
?>
is there any way to sort the inner arrays /these in $bigarr[]/ by a value /eg. [0]/ or any of their values /eg. [..]/ and then print the order of the arrays?
Thanks for your time.