comparing, !== versus !=
I know that !== is used to compare variable types too, while != only compares values. But I see that many people use !== when they compare values, for example: $stuff = 'foo'; if($stuff !== 'foo') // do... Is there any reason they do this? Is !== faster than != or what? If you do know in advance that both variables are of the same type, then it won't make any difference. I think the speed difference is just so negligible that the speed argument can (and should) be completely ignored, and you should focus on your application rather than focusing on premature (and unnecessary) optimization.