Re: class constants

From: Date: Wed, 08 Mar 2006 01:09:58 +0000
Subject: Re: class constants
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-231635@lists.php.net to get a copy of this message
<?php class something { const rr = "lala"; const gg = "ggerer"; } $hh = new ReflectionClass('something'); print_r($hh->getConstants()); ?> Thank you, I've try this above and works, I hadn't seen the message below. Excuse my english. On 3/7/06, Jared Williams < jared.williams1@ntlworld.com> wrote: > > > > > > Hi, > > > > ReflectionClass > > > > getConstant > > getConstants > > hasConstant > > > > > > http://www.ren.dotgeek.org/classbrowser/class.php?class=ReflectionClass > > > > Jared > > >

« previous php.general (#231635) next »