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, 2071🔥, 0💬
Popular Posts:
How to add a new operation to an API on the Publisher Dashboard of an Azure API Management Service? ...
How to login to Azure API Management Publisher Dashboard? If you have given access permission to an ...
Where Is the Submitted Form Data Stored in PHP? When a user submit a form on your Web server, user e...
How To Read Data from Keyboard (Standard Input) in PHP? If you want to read data from the standard i...
What is the Azure AD v1.0 OpenID Metadata Document? Azure AD v1.0 OpenID Metadata Document is an onl...