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, ∼3133🔥, 0💬
Popular Posts:
How to add images to my EPUB books Images can be added into book content using the XHTML "img" eleme...
How to dump (or encode, serialize) a Python object into a JSON string using json.dumps()? The json.d...
How to run CMD Commands in Dockerfile to change Windows Docker images? When building a new Windows i...
How To Change Text Fonts for Some Parts of a Paragraph? If you want to change text fonts or colors f...
Where to find tutorials on PHP language? I want to know how to learn PHP. Here is a large collection...