Why is === faster than == in PHP?
Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in D:\Hosting\3681091\html\blog\wp-content\plugins\digg-digg\dd.class.php on line 759
Warning: file_get_contents(http://feeds.delicious.com/v2/json/urlinfo/data?url=http%3A%2F%2Fwww.devtheweb.net%2Fblog%2F2010%2F03%2F09%2Fwhy-is-faster-than-in-php%2F) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in D:\Hosting\3681091\html\blog\wp-content\plugins\digg-digg\dd.class.php on line 759
First, let’s remember the definitions of the operators: The Equal operator ($a == $b) returns TRUE when $a is equal to $b.
The Identical ($a === $b)Â returns TRUE when $a is equal to $b, and they are of the same type.
When we use the identical operator $a === $b, first it checks to see if the two arguments ($a and $b) are the same type.
So, if $a is 1 and $b is ’1′ the check will fail on the type checking, before and any comparison are actually carried out.
Another reason the equal operator ($a == $b) to be slower than the identical operator is that the equal operator first goes ahead and it converts both arguments ($a and $b) to the same type and does the comparison.

