note 91018 deleted from function.define by danbrown
| From: | danbrown@php.net | Date: | Thu, 21 May 2009 12:50:40 +0000 |
| Subject: | note 91018 deleted from function.define by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155835@lists.php.net to get a copy of this message | ||
Note Submitter: chris (at) xeneco_co_uk
----
Just for fun
<?php
$cname = "MY_CONSTANT";
$val = "My Constant Value";
define($cname,$val);
echo MY_CONSTANT; //My Constant Value
echo constant($cname); //My Constant Value
?>