Re: [PHP] Why Constants could Not be Array?

2011-04-30 Thread Stuart Dallas
as class constants are declared when the file is parsed. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ > Original message > From: Walkinraven > To: php-general@lists.php.net > Date created: , 12:51:15 PM > Subject: [PHP] Why Constants could No

Re: [PHP] Why Constants could Not be Array?

2011-04-30 Thread Andre Polykanine
m_elensule Facebook: http://facebook.com/menelion Original message From: Walkinraven To: php-general@lists.php.net 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(...)

Re: [PHP] Why Constants could Not be Array?

2011-04-30 Thread Stuart Dallas
On Saturday, 30 April 2011 at 10:51, Walkinraven wrote: For needing a constants=array, I have to use > 'public static $a = array(...)' > > instead. > > Why the language could not relax the restriction of constants? As I understand it constants must be declarations not evaluations because they'r

[PHP] Why Constants could Not be Array?

2011-04-30 Thread Walkinraven
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