0

How do we materialize " [url]?parameter= " in php?

I want to make a condition so a if a user pass ?parameter= With just an equal and no value after , then I do something

24th Sep 2020, 2:08 PM
Adrien Linares
Adrien Linares - avatar
2 Antworten
+ 1
either using if(isset($_GET['parameter'])) or if(!empty($_GET['parameter'])) not sure which one
24th Sep 2020, 2:36 PM
Rei
Rei - avatar
+ 1
if ($_GET['parameter'] === '') or if (empty($_GET['parameter']))
24th Sep 2020, 6:33 PM
Ore
Ore - avatar