note 79762 deleted from function.define by nlopess
| From: | nlopess@php.net | Date: | Tue, 11 Dec 2007 21:39:21 +0000 |
| Subject: | note 79762 deleted from function.define by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133375@lists.php.net to get a copy of this message | ||
Note Submitter: subramani95 at gmail dot com
----
<?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.