Re: New construct discussion Summary (was: what happened to that new isset() like language construct)
| From: | Rasmus Lerdorf | Date: | Sun, 11 Jul 2004 16:43:51 +0000 |
| Subject: | Re: New construct discussion Summary (was: what happened to that new isset() like language construct) | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-11089@lists.php.net to get a copy of this message | ||
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);
$a = value($_GET['index'], $default);
-Rasmus