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, ∼2413🔥, 0💬
Popular Posts:
What are the differences of Differences of evaluateTransaction() and submitTransaction() of the fabr...
How to login to Azure API Management Publisher Dashboard? If you have given access permission to an ...
How to start Visual Studio Command Prompt? I have Visual Studio 2017 Community version with Visual C...
How To Loop through an Array without Using "foreach" in PHP? PHP offers the following functions to a...
How to build a test service operation to dump everything from the "context.Request" object in the re...