Im trying to creating a for loop and another for loop inside it and then display the results in 3 columns. It should look like this:
0(0) 0(1) 0(2)
1(0) 1(1) 1(2)
2(0) 2(1) 2(2)
3(0) 3(1) 3(2)
Right now I have this PHP script:
for ($x = 0; $x < 4; $x++) {
echo "$x";
for($y = 0; $y < 3; $y++){
echo "($y)<br/>";
}
}
Thanks in advance :)
<br/>should be printed by the outer loop, not the inner loop.