Re: What good are constants if you can't use them in anarray? [solved] I'm a jerk.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daevid Vincent wrote:
>>>> Why is PHP so lame...
>>> Why are you trolling on the PHP list?
> 
> Not trolling. Just frustrated. Apologies.
> 
>> Furthermore, you aren't even using them properly. The documentation
>> clearly shows the following usage:
>>
>>     ClassName::constant
> 
> This is how you have to use it.
> 
>>     self::constant
>>     parent::constant
> 
> These don't work.

they should work, but only when used in running code - if you use class
constant in static property definitions (ala your array) you need
to explicitly name the class.

> 
> Okay. I deserve the new a$$hole I was ripped by the list.
> 
> Sorry.
> 
> I'll crawl back into my hole now... ;-)

make sure it's not that new hole ... the paint is still drying :-P

> 
> d
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux