> <?
>
> $cnst = "DEBUG";
>
> // what I want to do but can't
> if ($dbg = constant($cnst)) {
> // do stuff
> }
>
> // the only real option, it seems - bit long winded to get round a stupid
> (IMHO)
> if (defined($cnst) && ($dbg = constant($cnst))) {
> // do stuff
> }
What is stupid with validating name before using it?
p.
--
Paweł Bernat; uselessness' lover;
select'<asm'||chr(64)||'asm'||'.'||'flynet'||chr(46)||'pl>'as email;
Slowly and surely the unix crept up on the Nintendo user ...
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php