Just another quick one,
Is there a way in PHP to check if a number is even or odd?
For example, in a:
while ($i < $numRows) {
do stuff
}
I'd like it to change the color of the text to red if $numRows is an even number and have black text for all the odd numbers.
Is there a way in PHP to check if a number is even or odd?
For example, in a:
while ($i < $numRows) {
do stuff
}
I'd like it to change the color of the text to red if $numRows is an even number and have black text for all the odd numbers.