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['id'] is a string like other parts of query string. You are not converting it to integer anywhere so is_int return false.
$_GET['id']