Dear friends,
I am alittle trap in this arrays stuff if you peeps could help me in this will be very greatfull..
here is the problem I am facing rite now..
$array = array (
'Total Stock' =>
array (
0 => '26',
1 => '14',
2 => '9',
3 => '22',
4 => '2',
5 => '13',
6 => '27',
7 => '19',
),
'Pending Stock' =>
array (
5 => '11',
6 => '6',
7 => '21',
10 => '24',
11 => '25',
12 => '23',
13 => '8',
),
);
foreach ($array as $inarray => $enteries){
print_r($enteries);
}
In this array there are 2 groups so when i get the data it comes out like this ..
Array ( [0] => 26 [1] => 14 [2] => 9 [3] => 22 [4] => 2 [5] => 13 [6] => 27 [7] => 19 ) Array ( [5] => 11 [6] => 6 [7] => 21 [10] => 24 [11] => 25 [12] => 23 [13] => 8 )
But I want it to be like
Array ( [0] => 26 [1] => 14 [2] => 9 [3] => 22 [4] => 2 [5] => 13 [6] => 27 [7] => 19 [8] => 11 [9] => 6 [10] => 21 [11] => 24 [12] => 25 [13] => 23 [14] => 8 )
If there is a way please guide me..
Thanks,
Kucing Hunt