html - php chessboard using function and for llop
one text
hei all i'm new in php, get stuck in this assignment for many days, if you can help would be appreciated
Write a function chessboard() that prints an 8x8 table in a chessboard pattern. so the exercise is about coding a chessboard using function and inside using for loop i tried to code a simple one get success with loop but the function makes me confuse
"; for($col=1;$col"; } else { echo ""; } } echo ""; } } chessboard($row,$col); ?> Source