View RSS Feed

Recent Blogs Posts

  1. PHP6 - ifsetor() :?

    by , 02-16-2009 at 12:07 AM
    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']; 
    ...
    Tags: php6 Add / Edit Tags
    Categories
    Uncategorized