How do I determine in PHP if a number is a whole number?
I'm creating rows of information, and I want every other row to be shaded. So, I assign $n a value for each row and increase it by 1 each time. I divide $n/2 to determine if it's a whole number, and if it is, I shade the row. So, how do I determine if $n/2 is a whole number?