I wrote the script for a multidimensional array as follows. But when I open my page to see the output, I can only see a blank page and cannot see any output produced by my php script. Why is this so? Can anyone help me?
PHP Code:<?php
$products = array( array( 'TIR', 'Tires', 100 ),
array( 'OIL' 'Oil' 10 ),
array( 'SPK', 'Spark Plugs', 4 ) );
for ( $row = 0; $row < 3; $row++ )
{
for ( $column = 0; $column < 3; $column++ )
{
echo '|'.$products[$row][$column];
}
echo '|<br />';
}
?>





Bookmarks