note 88565 deleted from function.define by thiago
| From: | thiago@php.net | Date: | Thu, 29 Jan 2009 11:26:36 +0000 |
| Subject: | note 88565 deleted from function.define by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-149940@lists.php.net to get a copy of this message | ||
Note Submitter: ranema dot ubuntu at gmail dot com
----
Response to eparkerii at carolina dot rr dot com:
define( 'A-B-C', 0 ) - defines a const
echo A-B-C == echo A - B - C that actually means a subtraction A - B - C
And PHP returns 0, because it tries to subtract NULL - NULL - NULL. But this should display at least
a notice, IMHO.
And define("THIS_IS_A_TEST","This is a test") defines a proper constant
echo THIS_IS_A_TEST - displays the constant