Here is my code
Code: Select all
$shop = array
(
array
(
"ProductB"=>32,
"ProductC"=>19,
"ProductD"=>55
),
array
(
"OpeningStock"=>55,
"DirectCosts"=>33,
"EndSTock"=>33
),
for ($row = 0; $row < 2; $row++) //number of rows Stay the same
{
echo "The row number " . $row . "</br>";
foreach($shop[$row] as $key => $value)
{
echo $value . "</br>";
}
}
Any help is appreciated.