I have a table of data that is generated dynamically based on the contents stored in a mysql database.
This is how my code looks:
-
";
?>
It basically checks to see if $x is divisible evenly by 2. If it is, it is even.
P.S. if you haven't seen that style of if else query, it is called a ternary operator.
- 热议问题