Tools, FAQ, Tutorials:
"new line" Character in Single-Quoted Strings in PHP
Can You Specify the "new line" Character in Single-Quoted Strings?
✍: FYIcenter.com
You can not specify the "new line" character in a single-quoted string. If you don't believe, try this script:
<?php echo '\n will not work in single quoted strings.'; ?>
This script will print:
\n will not work in single quoted strings.
⇒ Special Characters in Double-Quoted Strings in PHP
⇐ Escape Sequences in Single-Quoted Strings in PHP
2016-10-13, ∼4545🔥, 0💬
Popular Posts:
How To Access a Specific Character in a String? Any character in a string can be accessed by a speci...
How To Loop through an Array without Using "foreach" in PHP? PHP offers the following functions to a...
How to decode the id_token value received from Google OpenID Connect authentication response? Accord...
What properties and functions are supported on requests.models.Response objects? "requests" module s...
How To Get the Minimum or Maximum Value of an Array in PHP? If you want to get the minimum or maximu...