note 68514 deleted from function.define by tularis
| From: | tularis@php.net | Date: | Sun, 03 Jun 2007 09:38:44 +0000 |
| Subject: | note 68514 deleted from function.define by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-127145@lists.php.net to get a copy of this message | ||
Note Submitter: sean at syoft dot com
----
I typically use
define('CONSTANT',serialize($value));
to store arrays in constants and then just unserialize as needed:
if(in_array('val',unserialize(CONSTANT))) {}
Didn't see this mentioned here previously.