"Andi Gutmans" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> How about default($var, expr)?
my only reservation is that "default" is already part of a language
construct :

    <code>
    switch ($param = $_GET["param"]) {
        case "foo" : bar(); break;
        case "this" : that(); break;
        default:
                the_other( default($param) );
    }
    </code>

i'd say use defaultvalue

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to