The variable $n is readed from a form:
<?php
$nume=$_POST['n']
for($i=1;$i<=n;$i++)
{
    for($j=1;$j<=n;$j++)
    {
      if($i==$j) $a[$i][$j]=0;
      else $a[$i][$j]=$i;
      echo $a[$i][$j]." ";
    }
  echo $a[$i][$j];
}
?>
Parse error: syntax error, unexpected 'for' (T_FOR) in C:\wamp\www\php test 11F\test.php on line 3
What's the error, the problem? It is my first project in php.
 
     
     
    