Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End if “certain” variable exist… do this.? Re: if “certain” variable exist… do this.?

#93670
noahgelman
Participant

@mikes02

Shouldn’t it rather be:


isset($_GET) && $_GET == 'Hello' ? echo 'Enter Text You want to Echo'; ?>
?>

That way it only performs the echo if it exists. If it doesn’t exist, there’s no need to echo anything and doesn’t slow the page.