How do we materialize " [url]?parameter= " in php? | Sololearn: Learn to code for FREE!

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

php

9/24/2020 2:08:04 PM

Adrien Linares

2 Answers

New Answer

+1

either using if(isset($_GET['parameter'])) or if(!empty($_GET['parameter'])) not sure which one

+1

if ($_GET['parameter'] === '') or if (empty($_GET['parameter']))