Re: Class Constants

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

 



David,
	That worked great!

Thanks!
Floyd

On Apr 13, 2011, at 2:25 PM, David Harkness wrote:

> On Wed, Apr 13, 2011 at 11:04 AM, Floyd Resler <fresler@xxxxxxxxxxxxx>wrote:
> 
>> That didn't quite work.  Here's what I did:
>> $const=$argv[1];
>> $value=email::$const;
>> 
> 
> Instead try this:
> 
> $const = $argv[1];
> $reflector = new ReflectionClass('email');
> $value = $reflector->getConstant($const);
> 
> David


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[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