Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43902 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53453 invoked from network); 12 May 2009 16:35:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 May 2009 16:35:31 -0000 Authentication-Results: pb1.pair.com header.from=olafurw@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=olafurw@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.78.24 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: olafurw@gmail.com X-Host-Fingerprint: 74.125.78.24 ey-out-2122.google.com Received: from [74.125.78.24] ([74.125.78.24:7300] helo=ey-out-2122.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C9/C2-64369-255A90A4 for ; Tue, 12 May 2009 12:35:31 -0400 Received: by ey-out-2122.google.com with SMTP id 22so40055eye.59 for ; Tue, 12 May 2009 09:35:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=jIq1a25kLkWIP9hw5PF89XOKMg3ftjFAsmhudbJNwuc=; b=t1EE1VgONPauItEkzda++493t2Sq8SdXXvmLty2hX6dtGvOzt3tzJCfkg0sq9g3FjN a64TNP79KImmI6IoefVTCHKCqLUcLJp73xTY7Wg+s39RhjEr/BACoy5H3uBtP2TEMbVu +k1ThUTMA2jlyTOr1jymntTKqW1fjPSNJQHxI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Fo6mh30i8qDWRvNn/AfdZjPAF8w9WKRJrXoKyVYNR6qGvZzoMg3jb8/WS3/LBprDFW xP0cmppPc59DGwev57PeT2qUZBEh6Xy9gAg+4oXROEJRHqwpluQpTgetuWQfFXf0s1Vy pibtCWXD1MRRe0nb3+Kyk38HbLMQI1CCLOgxo= MIME-Version: 1.0 Received: by 10.216.29.72 with SMTP id h50mr4056119wea.137.1242146127695; Tue, 12 May 2009 09:35:27 -0700 (PDT) Date: Tue, 12 May 2009 16:35:27 +0000 Message-ID: <8c35d7690905120935t18722295i69217245c9296a6d@mail.gmail.com> To: internals@lists.php.net Content-Type: multipart/alternative; boundary=0016e6de0013b34f2e0469b9ae9f Subject: The constant use of isset() From: olafurw@gmail.com (=?ISO-8859-1?Q?=D3lafur_Waage?=) --0016e6de0013b34f2e0469b9ae9f Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable While researching for this suggestion I found this rfc proposal regarding ifsetor() ( http://wiki.php.net/rfc/ifsetor?s[]=3Disset) and it's rejection point was that it was currently not possible ( http://marc.info/?l=3Dphp-internals&m=3D108931281901389&w=3D2 ) But would it be possible to check for a value of a variable if it is set? Since I often do (and see others do) if(isset($_GET["foo"]) && $_GET["foo"] =3D=3D "bar") or even worse if((isset($_GET["foo"]) && $_GET["foo"] =3D=3D "bar") || (isset($_GET["baz"= ]) && $_GET["baz"] =3D=3D "bat")) to be able to do something like this if(isset($_GET["foo"]) =3D=3D "bar") or if(isset($_GET["foo"]) =3D=3D "bar" || isset($_GET["baz"]) =3D=3D "bat") That isset (or some other language construct) would return the variable if it were set and false if it was not. Thanks for your time, i know this has probably been talked to death in one form or other. =D3lafur Waage olafurw@gmail.com --0016e6de0013b34f2e0469b9ae9f--