SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the array_key_exists() built-in function:
array_key_exists()
if (array_key_exists('id', $_GET)) { echo $_GET['id']; }
or the isset() built-in function:
isset()
if (isset($_GET['id'])) { echo $_GET['id']; }