I am trying to generate a table with php for loop, that lists numbers. Something like this:
1 | 2 | 3 | 4 | 5 2 | 3 | 4 | 5 | 1 3 | 4 | 5 | 1 | 2 4 | 5 | 1 |
echo ""; for ( $i = 0; $i < 5; $i++ ) { echo ""; for ( $j = 0; $j < 5; $j++ ) { echo "", ($j+$i)%5+1, ""; } echo ""; } echo "";