Hello, I am very new to PHP, just learning some basic stuff. In this following condition-reaction code, there is a remainder inside the condition, yet I don’t recognize any division action like: 4\2=%2 ==0, so I can’t understand what is written there in the original form. Would thank you for an explanation:
<?php
$my_var = 6;
if ($my_var < 0 || $my_var > 10 && $my_var %2 == 0)
{
print 'my_var is > 2 or < 0 AND is even';
}
else
{
print 'my_var is between 0 and 10 OR is odd';
}