How to check if submitted variable is null in PHP?
Check if Variable is NULL in PHP
You can use isset($var) to check if the variable is not defined or null in PHP. and after setting a variable, you might need to reset it too. In that case you can use...
This is useful in managing the session variable.