Print newline in PHP in single quotes
Solution 1:
No, because single-quotes even inhibit hex code replacement.
echo 'Hello, world!' . "\xA";
Solution 2:
echo 'hollow world' . PHP_EOL;
Use the constant PHP_EOL then it is OS independent too.