note 109908 deleted from function.pg-query-params by googleguy
| From: | googleguy@php.net | Date: | Thu, 13 Sep 2012 03:34:08 +0000 |
| Subject: | note 109908 deleted from function.pg-query-params by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-190677@lists.php.net to get a copy of this message | ||
Note Submitter: php at richardneill dot org
----
It's OK to use $1, $2 etc inside double-quoted strings. Because legal variables cannot begin
with a number, this is treated as literal.
So all 3 of these print the same, literal string; the last one is perhaps unexpected.
echo '$100';
echo "\$100";
echo "$100";