1
I’m having trouble checking if the value of $_GET is whole. Below is the code:
<?php
     $modo=$_GET['PG'];
     if(is_int($modo)){
         echo "e inteiro";
     }else{
         echo "n e inteiro";
     }
?>
Even though I put a number on $_GET, he always keeps returning that he’s not a int.