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

Correct me if I’m wrong, but == means it equals the ending value which is 0. A single = means that you append that value to the variable which is $myVar1.