title: php validate integer
body: <p>I`m wonder why this not working</p>
  
  <pre><code>    echo gettype($_GET['id']); //returns string
    if(is_int($_GET['id']))
    {
     echo 'Integer';
    }
  </code></pre>
  
  <p>How to validate data passing from GET/POST if it is integer ?</p>