note 103890 deleted from language.types.string by cmb
| From: | cmb@php.net | Date: | Sun, 04 Aug 2019 09:14:31 +0000 |
| Subject: | note 103890 deleted from language.types.string by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-211806@lists.php.net to get a copy of this message | ||
Note Submitter: Michael
----
Just want to mention that if you want a literal { around a variable within a string, for example if
you want your output to be something like the following:
{hello, world}
and all that you put inside the {} is a variable, you can do a double {{}}, like this:
$test = 'hello, world';
echo "{{$test}}";