note 7861 added to define
| From: | rasmus at conecto dot dk | Date: | Thu, 17 Aug 2000 13:20:59 +0000 |
| Subject: | note 7861 added to define | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2202@lists.php.net to get a copy of this message | ||
define() does NOT work inside the scope of a function, example:
function f()
{
define("a", "Hello world");
echo(a); // Prints "a" and not "Hello world"
}
http://www.php.net/manual/function.define.php