note 79763 deleted from function.define by felipe
| From: | felipe@php.net | Date: | Sat, 15 Dec 2007 15:30:58 +0000 |
| Subject: | note 79763 deleted from function.define by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133570@lists.php.net to get a copy of this message | ||
Note Submitter: subramani95 at gmail dot com
Reason: 1
----
<?php
define ( MESSAGE, "Hello World!");
echo MESSAGE; // Outputs "Hello World!" and issues a notice.
define ( "MSG", "Hello You");
echo MSG; // Outputs "Hello You".
?>
First argument to 'define' should be a string (it should be within quotes), otherwise you
will get a 'Notice' message (Notice: Use of undefined constant).
Regards
Subramani R.