Re: Constant arrays
| From: | Tom Boutell | Date: | Tue, 20 Dec 2011 01:02:28 +0000 |
| Subject: | Re: Constant arrays | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-56956@lists.php.net to get a copy of this message | ||
This must be some strange definition of "constant" I do not understand, then (:
On Mon, Dec 19, 2011 at 7:43 PM, Daniel Convissor
<danielc@analysisandsolutions.com> 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. Then use unserialize(CONSTANT) when you need the data.
>
> --Dan
>
> --
> T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
> data intensive web and database programming
> http://www.AnalysisAndSolutions.com/
> 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
Tom Boutell
P'unk Avenue
215 755 1330
punkave.com
window.punkave.com