Re: class constants

From: Date: Tue, 07 Mar 2006 23:30:32 +0000
Subject: Re: class constants
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-231625@lists.php.net to get a copy of this message
Arnaldo Gandol wrote:
how can I to iterate the class constant without knowing their names?, I've reviewed the Class/Object Functions and Reflexion and nothing, I dont want to use static class variables, can any one help.
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 If you want to look at the class variables: http://www.php.net/manual/en/function.get-class-vars.php -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#231625) next »