Re: Re: [PHP-DEV] New construct discussion Summary (was: what happened to that new isset() like language construct)
| From: | Sterling Hughes | Date: | Sun, 11 Jul 2004 18:13:07 +0000 |
| Subject: | Re: Re: [PHP-DEV] New construct discussion Summary (was: what happened to that new isset() like language construct) | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-11093@lists.php.net to get a copy of this message | ||
On Sun, 11 Jul 2004 09:43:51 -0700 (PDT), Rasmus Lerdorf <rasmus@php.net> 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