Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11094 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31938 invoked by uid 1010); 11 Jul 2004 18:31:56 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 31894 invoked from network); 11 Jul 2004 18:31:55 -0000 Received: from unknown (HELO took.shire) (68.126.141.9) by pb1.pair.com with SMTP; 11 Jul 2004 18:31:55 -0000 Received: (qmail 81125 invoked by uid 1001); 11 Jul 2004 18:44:06 -0000 Date: Sun, 11 Jul 2004 18:44:06 +0000 To: internals@lists.php.net Message-ID: <20040711184406.GF57216@bagend.shire> Mail-Followup-To: internals@lists.php.net References: <20040708002654.7442.qmail@pb1.pair.com> <20040711024958.14248.qmail@pb1.pair.com> <32264751.20040711161552@marcus-boerger.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Subject: Re: [PHP-DEV] New construct discussion Summary (was: what happened to that new isset() like language construct) From: curt@php.net (Curt Zirzow) * 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!