I have a loop and I want it to print out two different colors.
Basically when $i is an even number it prints the color blue, and when $i is odd number it prints out green.
for ($i=0; $i<10; $i++) {
// what do i do to see if its odd or even, should i do division?
ex. $i % 2;
then do something with the string, to see if there is a decimal in it, if there is, its not even.
if (?????) {
$color = "blue";
} else {
$color = "green";
}
}