Re: class constants

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

 



<?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@xxxxxxxxxxxx> wrote:
> >
> >
> > Hi,
> >
> > ReflectionClass
> >
> > getConstant
> > getConstants
> > hasConstant
> >
> > http://www.ren.dotgeek.org/classbrowser/class.php?class=ReflectionClass
> >
> > Jared
> >
>

[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