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, 1279👍, 0💬
Popular Posts:
What is Azure API Management Publisher Dashboard? Azure API Management Publisher Dashboard is an Azu...
How to add request query string Parameters to my Azure API operation 2017 version to make it more us...
Where to get the detailed description of the JSON.stringify() Function in JavaScript? Here is the de...
Why am I getting this "Docker failed to initialize" error? After installing the latest version of Do...
What is Azure API Management Developer Portal? Azure API Management Developer Portal is an Azure Web...