On Sun, 11 Jul 2004 09:43:51 -0700 (PDT), Rasmus Lerdorf <[EMAIL PROTECTED]> wrote:
> On Sun, 11 Jul 2004, Marcus Boerger wrote:
> 
> >   $a = ifsetor($_GET['index'], $default);
> 
> ifsetor() sounds a bit cumbersome to me.
> 
> Some other suggestions:
> 
>     $a = is($_GET['index'], $default);
> 
>     $a = isor($_GET['index'], $default);
> 
>     $a = valid($_GET['index'], $default);

I don't like valid, because that implies checks that aren't there
(some sort of sanitizing).

> 
>     $a = value($_GET['index'], $default);
> 

all of the other ones sound good - i like value() the best.

-sterling

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

Reply via email to