Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88236 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78769 invoked from network); 16 Sep 2015 12:57:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Sep 2015 12:57:23 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.176 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.176 mail-wi0-f176.google.com Received: from [209.85.212.176] ([209.85.212.176:35507] helo=mail-wi0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0F/79-30198-23769F55 for ; Wed, 16 Sep 2015 08:57:22 -0400 Received: by wicge5 with SMTP id ge5so73351459wic.0 for ; Wed, 16 Sep 2015 05:57:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=PMSL+jong9r3mlfwus6GdL8TmRAc3+KRpICVGWbslMU=; b=EnKXaZ3jk51w2UAPNQQ4yr5OOfDUvVSPzpPe7Mcyrb7RfpB/6z7PGovyBuPlXFzQWq 28TJ05rguYN+Vb62YwBO0C+ZeufGFPC2nOwIEMSPP0fs9RNwQ5gTHbADk+G5OiaJtob6 Z1eok20U7XdPZmogGG027NXHT3xWzGDGr+D2OxA0+Xz8Oy4J+eBXH+9/guxBNubiG8r/ PBT4keAKMxrzylzqtA7gvn7QXajKtoltyisehEL58CHVlemcRAHmLvhmqXEP75QGwqtd 7WbQL3UiY3mnu5byP+n0EJZs8gQSP7jRcwIWy4BHceVQto3V1Rz2kuvLjalnJJ47+LRE RT7w== X-Received: by 10.194.238.39 with SMTP id vh7mr50222449wjc.109.1442408240017; Wed, 16 Sep 2015 05:57:20 -0700 (PDT) Received: from [192.168.0.127] ([62.189.198.114]) by smtp.googlemail.com with ESMTPSA id l17sm26483366wjr.18.2015.09.16.05.57.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Sep 2015 05:57:19 -0700 (PDT) To: internals@lists.php.net References: <8C74463E-DBA2-4015-8159-0B44D973387F@craigfrancis.co.uk> <55DE0907.6040904@gmail.com> <1F615BCD-1B9B-4C51-A210-869F1AA1F6E3@craigfrancis.co.uk> <55E5EBBF.6020803@gmail.com> <0BA3A129-D356-4781-B6DE-E2B5A7924AE2@craigfrancis.co.uk> <55E6EC36.6090301@gmail.com> <9AF329EC-99A5-412D-A52B-432627A5520F@gmail.com> <6F4D91EE-B56E-4B83-B1AF-598C3F6897FC@craigfrancis.co.uk> <55F07BA4.2000204@gmail.com> <55F6B911.9080400@gmail.com> <96BE7F01-D04B-483B-B1A3-B45CED6DFCDC@craigfrancis.co.uk> <55F6F08C.1020506@gmail.com> <0BEF6D82-CB5F-49F6-A3A4-3267924A0CDA@thesba.com> <55F78D90.7090601@php.net> <55F7CE3E.1040804@lsces.co.uk> <55F93E67.3000806@gmail.com> <55F945F7.8010402@lsces.co.uk> <55F94B25.8070603@gmail.com> <55F95439.5070306@php.net> <55F95F26.5080409@gmail.com> <55F9627C.60204@lsces.co.uk> Message-ID: <55F96700.7050001@gmail.com> Date: Wed, 16 Sep 2015 13:56:32 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <55F9627C.60204@lsces.co.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHP 7.1 - Address PHPSadness #28? From: rowan.collins@gmail.com (Rowan Collins) Lester Caine wrote on 16/09/2015 13:37: > Since all of my data comes into > PHP as associative arrays, that is the way I handle them, and being SQL > data, NULL IS a valid state for an element. Sure, and since you've got an array, you can use array_key_exists if you need to. > Some people seem to think there is some advantage in pulling the array > into individual elements of a class, and this where I am getting lost > since these elements then exist as variables in the class not easy to > handle elements of an array? That was the basis of my 'hidden in an > array' point ... They don't become variables, they become properties; you can use property_exists to look for them.