== and === operators in php
Posted
by Lizard
on Stack Overflow
See other posts from Stack Overflow
or by Lizard
Published on 2010-06-16T12:59:43Z
Indexed on
2010/06/16
13:02 UTC
Read the original article
Hit count: 212
Lets say I have a variable that will always be a string.
Now take the code below:
if($myVar === "teststring")
Note $myVar will always be a string, so my questions is
Which is quicker/best, using === (Indentity) or the == (Equality)?
© Stack Overflow or respective owner