Re: Re: constant() - php5

From: Date: Wed, 29 Jun 2005 13:53:15 +0000
Subject: Re: Re: constant() - php5
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-217817@lists.php.net to get a copy of this message
Marek Kilimajer wrote:
Jason Barnett wrote: ...
<?php /* Causes E_WARNING */ echo constant(UNDEFINED_CONSTANT);
The above is wrong, use: echo constant('UNDEFINED_CONSTANT');
OK, that's a good catch. But this still causes an E_WARNING. -- NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-general&w=2 STFM | http://php.net/manual/en/index.php STFW | http://www.google.com/search?q=php

« previous php.general (#217817) next »