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
You can possibly try the intval() which can be used to test the value of your var. e.g
intval()
If(intval($_GET['ID']==0)
The function will check if the var is integer and return TRUE if not FALSE
TRUE
FALSE