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
Â
⇒Understanding PHP String Literals and Operations
⇒⇒PHP Tutorials
2016-10-13, 1229👍, 0💬
Popular Posts:
Where Can I get a copy of the RSS XML Schema? RSS XML Schema is an XML Schema that defines how an RS...
How to install .NET Framework in Visual Studio Community 2017? I have the Visual Studio Installer in...
What Is HTML? HTML (HyperText Markup Language) is the standard markup language for creating Web page...
How to read RSS validation errors at w3.org? If your RSS feed has errors, the RSS validator at w3.or...
How to use "xsl-transform" Azure API Policy Statement? The "xsl-transform" Policy Statement allows y...