Re: class constants

From: Date: Wed, 08 Mar 2006 00:34:11 +0000
Subject: Re: class constants
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-231628@lists.php.net to get a copy of this message
Shaunak Kashyap wrote:
Constants aren't per class, they are per system. Whether you define
them
in a class or not won't change this. You can list all constants using http://www.php.net/manual/en/function.get-defined-constants.php
Actually, PHP5 allows constants per class, aka class constants. I think that's what the OP is referring to.
I have been educated :) I didn't know they existed. They don't show up in var_dump or anything like it :/ From the looks of things you can't get them - maybe put in a feature request (bugs.php.net) and see what happens for the next version. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#231628) next »