Contact: aviboots(AT)netvision.net.il
41,379 questions
53,922 answers
573 users
// assume 'id' is your variable // example: https://www.seek4info.com/main.php?id= if (isset($_GET['id']) && empty($_GET['id'])) { echo '$_GET is empty'; } /* run: $_GET is empty */
if (empty($_GET)) { echo '$_GET is empty'; } else { echo '$_GET is not empty'; } /* run: $_GET is empty */
if (count($_GET) === 0) { echo '$_GET is empty'; } else { echo '$_GET is not empty'; } /* run: $_GET is empty */