I'm studying PHP for a book I found on the net and she asked me to enter a code but after I type not the error and it does not show what the result should write the contents of the array on the screen.
"Undefined variable: producs in C ..."
I went to the top of the code and typed
if(isset($_POST['products'])){
and I put the key close it down but it did not work, it does not show any error or result.
$products = array(array('TIR', 'tires', 100),
array('OIL', 'oil', 10),
array('SPK', 'spark plugs', 4));
echo '|'.$products[0][0].'|'.$products[0][1].'|'.$producs[0][2].'|<br>';
echo '|'.$products[1][0].'|'.$products[1][1].'|'.$producs[1][2].'|<br>';
echo '|'.$products[2][0].'|'.$products[2][1].'|'.$producs[2][2].'|<br>';