<?php
$a=10;
$tab=Array();
for($i=0;$i<$a;$i++)
{
for($j=0;$j<$a;$j++)
{
if($j==$i||$i+$j==$a-1)
{
$tab[$i][$j]=1;
}
else
{
$tab[$i][$j]=0;
}
echo "$tab[$i][$j]";
}
echo "</br>";
}
Notice: Array to string conversion in D:\XAMPP\htdocs\index.php on line 17
Array[0] i tak razy 100