Why does is_int always return false in the following situation?
is_int
echo $_GET[\'id\']; //3 if(is_int($_GET[\'id\'])) echo \'int\'; //not execut
Because $_GET is an array of strings.
To check if the get parameter contains an integer you should use is_numeric()
is_numeric()