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.
⇒ Escape Sequences in Double-Quoted Strings in PHP
⇐ "new line" Character in Single-Quoted Strings in PHP
2016-10-13, ∼3076🔥, 0💬
Popular Posts:
What properties and functions are supported on http.client.HTTPResponse objects? If you get an http....
How To Use an Array as a Queue in PHP? A queue is a simple data structure that manages data elements...
How To Create an Array with a Sequence of Integers or Characters in PHP? The quickest way to create ...
How to access URL template parameters from "context.Request.Matched Parameters"object in Azure API P...
How to use "xml-to-json" Azure API Policy Statement? The "xml-to-json" Policy Statement allows you t...