alot of time in programming the value of variables are passed through url parameters, in php;
if (isset($_GET['var'])) {$var = $_GET['var'];}
But if that does not execute, we will have an unset variable, in which may cause errors in the remaining of the code, i usually set the variable to '' or false;
else {$var = '';}
I was wondering what are the best practices, and why : )
thank you!