PHP: is_int - Manual - PHP: Hypertext Preprocessor
((int)$foo === $foo) does exactly the same as is_int($foo), but is faster performancewise, because PHP has quite an overhead on function calls. As you can see the expression only returns true if the type (and value) of $foo is the same as int-casted $foo,...