note 8679 added to defined

From: Date: Sat, 23 Sep 2000 09:24:48 +0000
Subject: note 8679 added to defined
Groups: php.notes 
Request: Send a blank email to php-notes+get-5415@lists.php.net to get a copy of this message
The DEFINED() function takes a string argument. Generally, you want to enclose the constant's name in double quotes, that is: if (DEFINED("MY_CONSTANT")) If you forget to do this, e.g. if (DEFINED(MY_CONSTANT)) you will probably not get the results you want. http://www.php.net/manual/function.defined.php

« previous php.notes (#5415) next »