Hello Walkinraven,
I use serialize for that.
define("MY_CONSTANT", serialize(array("1", "2", "hello")));
--
With best regards from Ukraine,
Andre
Skype: Francophile
My blog: http://oire.org/menelion (mostly in Russian)
Twitter: http://twitter.com/m_elensule
Facebook: http://facebook.com/menelion
------------ Original message ------------
From: Walkinraven <[email protected]>
To: [email protected]
Date created: , 12:51:15 PM
Subject: [PHP] Why Constants could Not be Array?
For needing a constants=array, I have to use
'public static $a = array(...)'
instead.
Why the language could not relax the restriction of constants?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php