===and !==important if you use a function that can return 0 as successful, and FALSE when it fails. In PHP 0, it is also FALSE, which would lead to the conclusion that the function failed.
if(somefunction() == 0) {
}
Assuming some function returns 0 when the function was successful, and FALSE when it failed, the snippet above will run when the return code is FALSE.
Use ===prevents this, because it will only work if the answer is really 0.
source
share