note 110607 deleted from function.define by danbrown
| From: | danbrown@php.net | Date: | Thu, 06 Dec 2012 14:18:28 +0000 |
| Subject: | note 110607 deleted from function.define by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-192320@lists.php.net to get a copy of this message | ||
Note Submitter: Gaelan
----
Notes on setting constants to variables:
<?php
$foo = "bar";
define("FOO_CONSTANT", $foo);
FOO_CONSTANT; // returns "bar"
$foo = "baz";
FOO_CONSTANT; // still 'bar"
?>