note 86514 added to function.define
| From: | eparkerii at carolina dot rr dot com | Date: | Wed, 22 Oct 2008 19:01:16 +0000 |
| Subject: | note 86514 added to function.define | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-145606@lists.php.net to get a copy of this message | ||
Found something interesting. The following define:
<?
define("THIS-IS-A-TEST","This is a test");
echo THIS-IS-A-TEST;
?>
Will return a '0'.
Whereas this:
<?
define("THIS_IS_A_TEST","This is a test");
echo THIS_IS_A_TEST;
?>
Will return 'This is a test'.
This may be common knowledge but I only found out a few minutes ago.
----
Server IP: 208.69.120.35
Probable Submitter: 70.60.110.54
----
Manual Page -- http://www.php.net/manual/en/function.define.php
Edit -- https://master.php.net/note/edit/86514
Del: integrated -- https://master.php.net/note/delete/86514/integrated
Del: useless -- https://master.php.net/note/delete/86514/useless
Del: bad code -- https://master.php.net/note/delete/86514/bad+code
Del: spam -- https://master.php.net/note/delete/86514/spam
Del: non-english -- https://master.php.net/note/delete/86514/non-english
Del: in docs -- https://master.php.net/note/delete/86514/in+docs
Del: other reasons-- https://master.php.net/note/delete/86514
Reject -- https://master.php.net/note/reject/86514
Search -- https://master.php.net/manage/user-notes.php