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
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(...)
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
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
4 matches
Mail list logo