Re: What good are constants if you can't use them in anarray? [solved] I'm a jerk.
| From: | Jochem Maas | Date: | Thu, 03 Aug 2006 00:04:16 +0000 |
| Subject: | Re: What good are constants if you can't use them in anarray? [solved] I'm a jerk. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-240033@lists.php.net to get a copy of this message | ||
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
>