thanks for that explanation, case closed. :-)
Original Message
Return-Path: <[EMAIL PROTECTED]>
X-Original-To: [EMAIL PROTECTED]
Subject: Re: [PHP-DEV] [Fwd: [PHP] constant() - php5]
X-Virus-Scanned: amavisd-new at moulin.nl
Due to PHPs dynamic typing, unquoted strin
Richard Davey wrote:
...
Isn't the warning coming from the fact that $cnst isn't defined,
rather than coming from the constant() function itself?
Best regards,
Richard Davey
Nope... tested with PHP 5.0.5-dev
--
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.t
Hello Jochem,
Wednesday, June 29, 2005, 2:13:21 PM, you wrote:
JM> anybody here know what the logic is behind constant() triggering a
JM> warning if the named constant is not found?
JM> $cnst = "DEBUG";
JM> // what I want to do but can't
JM> if ($dbg = constant($cnst)) {
JM> // do stuf
anybody here know what the logic is behind constant() triggering a warning
if the named constant is not found?
contrived example:
http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
4 matches
Mail list logo