note 49045 deleted from function.echo by tularis
| From: | tularis@php.net | Date: | Thu, 01 Nov 2007 09:17:00 +0000 |
| Subject: | note 49045 deleted from function.echo by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-131911@lists.php.net to get a copy of this message | ||
Note Submitter: Truffy
----
You can use braces around variables as well as array items. This is useful to help recognition of
your variables in your code, but most useful where the variable iteslf cannot be separated with
spaces from the preceding/following code, for exmple in a file path:
If a path is assigned the variable $path, then this code will not work:
echo "$pathindex.php";
whereas this will
echo "{$path}index.php";