Hi I have recently just started PHP and I'm currently trying to learn arrays. Below is an array im looking at and don't quite understand how it outputs the columns of the array. I don't understand how $row and $col suddenly just output the first 2 columns of the array and also what would need to do to output the 3rd column.
$shop = array( array("rose", 1.25 , 15),
array("daisy", 0.75 , 25),
array("orchid", 1.15 , 7)
);
echo "<h1>Using loops to display array elements</h1>";
echo "<ol>";
for ($row = 0; $row < 3; $row++)
{
echo "<li><b>The row number $row</b></li>";
echo "<ul>";
for ($col = 0; $col < 3; $col++)
{
echo $shop [$row] [$col];
}
echo "</ul>";
echo "</li>";
}
echo "</ol>";