Re: New construct discussion Summary (was: what happened to that new isset() like language construct)
| From: | Curt Zirzow | Date: | Sun, 11 Jul 2004 18:44:06 +0000 |
| Subject: | Re: 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-11094@lists.php.net to get a copy of this message | ||
* Thus wrote Rasmus Lerdorf:
> On Sun, 11 Jul 2004, Marcus Boerger wrote:
>
> > $a = ifsetor($_GET['index'], $default);
>
> ifsetor() sounds a bit cumbersome to me.
>
> ...
>
> $a = value($_GET['index'], $default);
I like value() although it might be a bit too generic, maybe add
a word to it to help understand what the call does:
$a = valueof($_GET['index'], $default);
$a = valueor($_GET['index'], $default);
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!