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
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.