Tools, FAQ, Tutorials:
Escape Sequences in Single-Quoted Strings in PHP
How Many Escape Sequences Are Recognized in Single-Quoted Strings?
✍: FYIcenter.com
There are two special characters you need to escape in a single-quote string: the single quote (') and the back slash (\). Here is a PHP script example of single-quoted strings:
<?php echo 'Hello world!'; echo 'It\'s Friday!'; echo '\\ represents an operator.'; ?>
This script will print:
Hello world!It's Friday!\ represents an operator.
⇒ "new line" Character in Single-Quoted Strings in PHP
⇐ Understanding PHP String Literals and Operations
2016-10-13, 1542🔥, 0💬
Popular Posts:
How to use the "rewrite-uri" Policy Statement for an Azure API service operation? The "rewrite-uri" ...
How to read Atom validation errors at w3.org? If your Atom feed has errors, the Atom validator at w3...
What Is HTML? HTML (HyperText Markup Language) is the standard markup language for creating Web page...
How to install "The Windows SDK version 8.1"? I need to build my Visual Studio C++ applications. If ...
Why I am getting "The Windows SDK version 8.1 was not found" error, when building my C++ application...