note 90530 deleted from function.define by danbrown
| From: | danbrown@php.net | Date: | Mon, 27 Apr 2009 14:28:37 +0000 |
| Subject: | note 90530 deleted from function.define by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-153817@lists.php.net to get a copy of this message | ||
Note Submitter: gmdebby at gmail dot com
----
To : usuroer dot king at hotmail dot co dot uk
(About the This-is-a-test thing)
We can create constants with hyphen but we have to use the constant function to access them :
<?php
define("THIS-IS-A-TEST","working");
if(defined("THIS-IS-A-TEST")) {
echo "I'm defined and I'm ".constant("THIS-IS-A-TEST");
//echoes I'm defined and I'm working
//tested in php 4 (free.fr)
// http://nirahiel.free.fr/php << your free php
tester ;)
}
?>