Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56956 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72383 invoked from network); 20 Dec 2011 01:02:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Dec 2011 01:02:33 -0000 Authentication-Results: pb1.pair.com header.from=tom@punkave.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tom@punkave.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain punkave.com designates 209.85.216.49 as permitted sender) X-PHP-List-Original-Sender: tom@punkave.com X-Host-Fingerprint: 209.85.216.49 mail-qw0-f49.google.com Received: from [209.85.216.49] ([209.85.216.49:35126] helo=mail-qw0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2B/25-38867-7AEDFEE4 for ; Mon, 19 Dec 2011 20:02:32 -0500 Received: by qadc14 with SMTP id c14so3921732qad.8 for ; Mon, 19 Dec 2011 17:02:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.224.10.19 with SMTP id n19mr16335755qan.68.1324342948368; Mon, 19 Dec 2011 17:02:28 -0800 (PST) Received: by 10.229.93.200 with HTTP; Mon, 19 Dec 2011 17:02:28 -0800 (PST) In-Reply-To: <20111220004351.GA10797@panix.com> References: <4EEF9C79.4090104@gmail.com> <20111220004351.GA10797@panix.com> Date: Mon, 19 Dec 2011 20:02:28 -0500 Message-ID: To: Daniel Convissor Cc: "Barbu Paul Gh." , internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Constant arrays From: tom@punkave.com (Tom Boutell) This must be some strange definition of "constant" I do not understand, the= n (: On Mon, Dec 19, 2011 at 7:43 PM, Daniel Convissor wrote: > Hi Barbu: > >> I wonder why I cannot assign arrays to constants. > > Do keep in mind that you can serialize() the array before storing it in > a constant. =A0Then use unserialize(CONSTANT) when you need the data. > > --Dan > > -- > =A0T H E =A0 A N A L Y S I S =A0 A N D =A0 S O L U T I O N S =A0 C O M P = A N Y > =A0 =A0 =A0 =A0 =A0 =A0data intensive web and database programming > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0http://www.AnalysisAndSolutions.com/ > =A04015 7th Ave #4, Brooklyn NY 11232 =A0v: 718-854-0335 f: 718-854-0409 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > --=20 Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com