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, ∼2602🔥, 0💬
Popular Posts:
How to use the "Ctrl-p Ctrl-q" sequence to detach console from the TTY terminal of container's runni...
How to use .NET CLR Types in Azure API Policy? By default, Azure imports many basic .NET CLR (Common...
dev.FYIcenter.com is a Website for software developer looking for software development technologies,...
How to add a new operation to an API on the Publisher Dashboard of an Azure API Management Service? ...
Why I am getting "The Windows SDK version 8.1 was not found" error, when building my C++ application...