Quote:
Originally Posted by an-NET
so wait...
== is used for numerics and === is used for strings. woops^.^
|
No, I think == means equal, while === means identical. It's not based on whether it's a string or numerical value.
In filburt's example
PHP Code:
123 == "123" // is true
123 === "123" // is false; the first is numeric, the second is a string
123 is equal to "123" // is true
123 is identical to "123" // is false, the quotations indicate the 123 as a string.
I could be wrong though. I'm still learning.