Tools, FAQ, Tutorials:
Including Variables in Double-Quoted Strings in PHP
How To Include Variables in Double-Quoted Strings?
✍: FYIcenter.com
Variables included in double-quoted strings will be interpolated. Their values will be concatenated into the enclosing strings. For example, two statements in the following PHP script will print out the same string:
<?php $variable = "and"; echo "part 1 $variable part 2\n"; echo "part 1 ".$variable." part 2\n"; ?>
This script will print:
part 1 and part 2 part 1 and part 2
⇒ Ways to Include Variables in Double-Quoted Strings in PHP
⇐ Escape Sequences in Double-Quoted Strings in PHP
2016-10-13, ∼2831🔥, 0💬
Popular Posts:
How to start Docker Daemon, "dockerd", on CentOS systems? If you have installed Docker on your CentO...
Where to get a real Atom XML example? You can follow this tutorial to get a real Atom XML example: 1...
How to read RSS validation errors at w3.org? If your RSS feed has errors, the RSS validator at w3.or...
What Happens If One Row Has Missing Columns? What happens if one row has missing columns? Most brows...
Where to find tutorials on Python programming language? I want to learn Python. Here is a large coll...