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, ∼3162🔥, 0💬
Popular Posts:
Where to find tutorials on JSON (JavaScript Object Notation) text string format? I want to know how ...
How to use the "set-body" Policy Statement for an Azure API service operation? The "set-body" Policy...
How to use the "@{...}" expression block in Azure API Policy? The "@{...}" expression block in Azure...
Where to get a real Atom XML example? You can follow this tutorial to get a real Atom XML example: 1...
How to enter &amp; entity in '@(...)' expressions? If you want to enter the &amp; se...