Why is there == 0 near some modulo in PHP?

For testing if the remainder is equal to that value.

$var % 2 == 0 // test for an even number
$var % 2 == 1 // test for an odd number