Marek Kilimajer wrote:
Jason Barnett wrote:
...
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
Jason Barnett wrote:
Actually, thanks for pointing out this function to me because I never
even knew that it existed. You learn something new every day.
I have to admit that a warning seems a little unusual given that an
undefined variable would result in only an E_NOTICE. Especially since
Actually, thanks for pointing out this function to me because I never
even knew that it existed. You learn something new every day.
I have to admit that a warning seems a little unusual given that an
undefined variable would result in only an E_NOTICE. Especially since
the default behavior f
3 matches
Mail list logo