php - How to Display the set of series not from the array? -
i have following array:
array ( [0] => 3 [1] => 6 [2] => 3 [3] => 4 [4] => 5 [5] => 7 [6] => 6 [7] => 7 )
we have split array (order should 3,4,5,6,7
)
output should be
array 1: 3,4,5,6,7 (3 taken [0],4 taken [3],5 taken [4],6 taken [6],7 taken [7]) array 2: 3,-,-,-,- (3 taken [2] nd position) array 3: -,-,-,6,7 (6 taken [1] nd position,7 taken [5] nd position)
basically youre asking this...
$array = array(3,6,3,4,5,7,6,7); $array1 = array($array[0],$array[3],$array[4],$array[6],$array[7]); $array2 = array($array[2],"-","-","-","-"); $array3 = array("-","-","-",$array[1],$array[5]);
Comments
Post a Comment