Tools, FAQ, Tutorials:
Special Characters in Double-Quoted Strings in PHP
What Are the Special Characters You Need to Escape in Double-Quoted Stings?
✍: FYIcenter.com
There are two special characters you need to escape in a double-quote string: the double quote (") and the back slash (\). Here is a PHP script example of double-quoted strings:
<?php echo "Hello world!"; echo "Tom said: \"Who's there?\""; echo "\\ represents an operator."; ?>
This script will print:
Hello world!Tom said: "Who's there?"\ represents an operator.
Â
⇒Understanding PHP String Literals and Operations
⇒⇒PHP Tutorials
2016-10-13, 1207👍, 0💬
Popular Posts:
What Is HTML? HTML (HyperText Markup Language) is the standard markup language for creating Web page...
How to View Atom Feeds with IE (Internet Explorer)? If you want to view Atom Feeds with IE (Internet...
Where to find tutorials on Using Azure API Management Publisher Dashboard? Here is a list of tutoria...
What is EPUB 2.0 Metadata "dc:publisher" and "dc:rights" elements? EPUB 2.0 Metadata "dc:publisher" ...
Can You Specify the "new line" Character in Single-Quoted Strings? You can not specify the "new line...