note 103890 added to language.types.string
| From: | Michael at osu1 dot php dot net | Date: | Mon, 09 May 2011 12:56:29 +0000 |
| Subject: | note 103890 added to language.types.string | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-179560@lists.php.net to get a copy of this message | ||
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}}";
----
Server IP: 69.147.83.197
Probable Submitter: 71.234.175.167
----
Manual Page -- http://www.php.net/manual/en/language.types.string.php
Edit -- https://master.php.net/note/edit/103890
Del: integrated -- https://master.php.net/note/delete/103890/integrated
Del: useless -- https://master.php.net/note/delete/103890/useless
Del: bad code -- https://master.php.net/note/delete/103890/bad+code
Del: spam -- https://master.php.net/note/delete/103890/spam
Del: non-english -- https://master.php.net/note/delete/103890/non-english
Del: in docs -- https://master.php.net/note/delete/103890/in+docs
Del: other reasons-- https://master.php.net/note/delete/103890
Reject -- https://master.php.net/note/reject/103890
Search -- https://master.php.net/manage/user-notes.php