I searched on StackOverflow and Google and I can\'t find the answer to this question:
Should we always use the triple equal in PHP for validation?
For exampl
if you're expecting that variable that you're passing will (and must) be integer than you should use triple equal, if not than you should avoid that.
Although, if you really want to use ===
than you should be doing conversion of variables to the type that you want along the way, like on this example:
if ((int) $var === 1)
{
// will return true if the $var is 1
}