Log in

View Full Version : Equals



bluewalrus
11-09-2009, 11:34 PM
Can't find documentation on the equals operators, specifically when to use == and ===? I can't seem to google "=". Thanks for any ideas.

techietim
11-09-2009, 11:44 PM
http://www.php.net/manual/en/language.operators.comparison.php

Nile
11-09-2009, 11:48 PM
Just a little addition to Tim's post. :rolleyes:


== is to compare, and return false if the values are different.
=== is to compare, and see if the types (array, string, number) are the same, and then return false on failure.