Web developers are constantly validating data, either through JavaScript or through a server side programming language such as PHP. If you have done any PHP development, I am sure you have been in the situation where, if a request variable is set, you want want to use that value, if it is not set, you would like it to default to a specific value. The most common and logical method to accomplish this is to use an if/else block. Code: if(isset($_GET['foo'])) { $bar = $_GET['foo']; ...
if(isset($_GET['foo'])) { $bar = $_GET['foo'];