I`m wonder why this not working
echo gettype($_GET[\'id\']); //returns string if(is_int($_GET[\'id\'])) { echo \'Integer\'; }
What about intval?
$int = intval($_GET['id']);