Re: New construct discussion Summary (was: what happened to that new isset() like language construct)
| From: | Andi Gutmans | Date: | Mon, 12 Jul 2004 03:53:28 +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-11105@lists.php.net to get a copy of this message | ||
How about default($var, expr)?
Andi
At 09:43 AM 7/11/2004 -0700, Rasmus Lerdorf 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);$a = value($_GET['index'], $default);-Rasmus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php