note 114848 deleted from language.operators.string by sobak

From: Date: Sat, 19 Nov 2016 07:20:52 +0000
Subject: note 114848 deleted from language.operators.string by sobak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-207190@lists.php.net to get a copy of this message
Note Submitter: patel405nishant 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"; $world = "world"; echo "$var" . '$world'; //outputs hello$world echo "$var" . "$world"; //outputs helloworld echo "$var" . $world; //outputs helloworld ?> 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.

« previous php.notes (#207190) next »