Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16463 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61124 invoked by uid 1010); 6 Jun 2005 19:12:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 61103 invoked from network); 6 Jun 2005 19:12:22 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 6 Jun 2005 19:12:22 -0000 X-Host-Fingerprint: 209.161.72.28 theta.altoona-pa.com Linux 2.4/2.6 Received: from ([209.161.72.28:39358] helo=theta.altoona-pa.com) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id CD/B5-25529-410A4A24 for ; Mon, 06 Jun 2005 15:12:20 -0400 Received: from JASONGARBER2 (static-207-68-114-163.alt.east.verizon.net [207.68.114.163]) by theta.altoona-pa.com (Postfix) with ESMTP id B7B6F13D1D; Mon, 6 Jun 2005 15:11:51 -0400 (EDT) Date: Mon, 6 Jun 2005 15:11:37 -0400 X-Mailer: The Bat! (v3.5.25) Professional Reply-To: Jason Garber Organization: IonZoft, Inc. X-Priority: 3 (Normal) Message-ID: <491379771.20050606151137@ionzoft.com> To: Sean Coates Cc: internals@lists.php.net In-Reply-To: <42A48643.3070704@caedmon.net> References: <5.1.0.14.2.20050603203711.028e9140@localhost> <5.1.0.14.2.20050603203711.028e9140@localhost> <5.1.0.14.2.20050605120644.033c8a00@localhost> <1852284679.20050606131608@ionzoft.com> <42A48643.3070704@caedmon.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHP 5.1 From: jason@ionzoft.com (Jason Garber) Hello Sean, I should have clarified this -- The following is how I do it all the time. It's just a bit longhanded for something that is done so often. $email = (isset($_GET['email']) ? $_GET['email'] : ''); It get's even messier when you want to get something like this: $value = (integer) (isset($myBigArray['SomeKey1']['SomeOtherKey']) ? $myBigArray['SomeKey1']['SomeOtherKey'] : 0); where $value = ifsetor($myBigArray['SomeKey1']['SomeOtherKey'], 0); is a bit cleaner. Thanks. -- Best regards, Jason mailto:jason@ionzoft.com Monday, June 6, 2005, 1:22:11 PM, you wrote: SC> Jason Garber wrote: >> If there was any way to accommodate this with userland PHP code, I >> would have already done it. However it is an engine level function >> that has to be added to the core of PHP. SC> For the record, I also find ifsetor useful, but what you want can be SC> accomplished like this: SC> $email = isset($_GET['email']) ? $_GET['email'] : 'no email address'; SC> ifsetor would make this much nicer, but there /is/ a way to accomplish SC> what you want in userland. SC> S