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

Perhaps an easier way to understand what $var %2 == 0 does

Expand the code out to:

$remainder = $var % 2;
if ($remainder == 0)