PHP Question:
Hi there, this is just something I was wondering today, what I'm doing:
I have (or not) a variable $_GET['myvar'] coming from my querystring and I want to check if this variable exists and also if the value corresponds to something inside my if statment:
What I'm doing and think is not the best way to do:
if(isset($_GET['myvar']) && $_GET['myvar'] == 'something'): do something
My question is, exist any way to do this without declare the variable twice?
that is a simple case but imagine have to compare many of this $myvar variables...
Thanks everyone.