Answers for "php how to controll if param in url exists"

PHP
0

php check if parameter exists in url

print_r($_GET); // to check the parm list in url

if(isset($_GET['id']))
{
  echo $_GET['id'];
    // Do something
}
Posted by: Guest on August-06-2021

Browse Popular Code Answers by Language