note 113931 added to language.operators.string
| From: | mostafa dot ali106 at gmail dot com | Date: | Wed, 18 Dec 2013 15:13:36 +0000 |
| Subject: | note 113931 added to language.operators.string | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-197973@lists.php.net to get a copy of this message | ||
Please note that PHP does not differentiate between double quotes and single quotes when it comes to
concatenating.
Meaning that you can use this:
<?php
$var = "hello";
echo "$var" . '$world'; //outputs hello$world
?>
so you can use both at the same time, you can use it to evaluate a portion of the string and keep
other parts unevaluated.
----
Server IP: 72.52.91.14
Probable Submitter: 72.52.91.14
----
Manual Page -- http://php.net/manual/en/language.operators.string.php
Edit -- https://master.php.net/note/edit/113931
Del: integrated -- https://master.php.net/note/delete/113931/integrated
Del: useless -- https://master.php.net/note/delete/113931/useless
Del: bad code -- https://master.php.net/note/delete/113931/bad+code
Del: spam -- https://master.php.net/note/delete/113931/spam
Del: non-english -- https://master.php.net/note/delete/113931/non-english
Del: in docs -- https://master.php.net/note/delete/113931/in+docs
Del: other reasons-- https://master.php.net/note/delete/113931
Reject -- https://master.php.net/note/reject/113931
Search -- https://master.php.net/manage/user-notes.php