note 103930 deleted from language.variables.basics by danbrown
| From: | danbrown@php.net | Date: | Thu, 12 May 2011 13:08:57 +0000 |
| Subject: | note 103930 deleted from language.variables.basics by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-179655@lists.php.net to get a copy of this message | ||
Note Submitter: rick-2288 at hotmail dot com
----
Please note that when using double quotes, it will only accept plain variables.
Something like this WILL work:
<?php
echo "Hello $user";
?>
While something like this will return errors:
<?php
echo "Hello $user['name']";
?>
That is, it will not accept indexes, only plain variables.