note 113933 deleted from language.operators.string by peehaa
| From: | peehaa@php.net | Date: | Wed, 01 Apr 2015 18:10:56 +0000 |
| Subject: | note 113933 deleted from language.operators.string by peehaa | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-202137@lists.php.net to get a copy of this message | ||
Note Submitter: mostafa dot ali106 at gmail dot com
----
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.