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, ∼2810🔥, 0💬
Popular Posts:
How To Use an Array as a Queue in PHP? A queue is a simple data structure that manages data elements...
How to run CMD Commands in Dockerfile to change Windows Docker images? When building a new Windows i...
How to install "The Windows SDK version 8.1"? I need to build my Visual Studio C++ applications. If ...
How to use the Atom Online Validator at w3.org? w3.org feed validation service is provided at http:/...
What Happens If One Row Has Missing Columns? What happens if one row has missing columns? Most brows...