How to check if a $_GET exists but has no value in PHP

1 Answer

0 votes
if (isset($_GET['id']) && empty($_GET['id'])) {
    echo '$_GET exit and has no value';
}


/*
run:

$_GET exit and has no value

*/

 



answered Jul 31, 2020 by avibootz

Related questions

...