Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13413 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40822 invoked by uid 1010); 20 Oct 2004 11:08:03 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 40771 invoked from network); 20 Oct 2004 11:08:02 -0000 Received: from unknown (HELO jdi.jdimedia.nl) (212.204.192.51) by pb1.pair.com with SMTP; 20 Oct 2004 11:08:02 -0000 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id i9KB81r7012719 for ; Wed, 20 Oct 2004 13:08:01 +0200 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id i9KB7wm1012689; Wed, 20 Oct 2004 13:07:58 +0200 Date: Wed, 20 Oct 2004 13:07:58 +0200 (CEST) X-X-Sender: derick@localhost To: Ron Korving cc: internals@lists.php.net In-Reply-To: <20041020110454.29582.qmail@pb1.pair.com> Message-ID: References: <20041020110454.29582.qmail@pb1.pair.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jdimedia.nl Subject: Re: [PHP-DEV] suggestion: empty() with infinite parameters like isset() From: derick@php.net (Derick Rethans) On Wed, 20 Oct 2004, Ron Korving wrote: > I think it would be a good idea to apply the idea of infinite parameters > that's been used with isset(), so one can test multiple variables: > > if (empty($var1, $var2, $var3)) echo "data missing"; We discussed this before and we didn't want to agree if it should behave like "each one should be empty" or "all should be empty". So we will not add it. Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org