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