$var = \"Hi there\".\"\".\"Welcome to my website\".\";\" echo $var;
Is there an elegant way to handle line-breaks in PHP? I\'
I have defined this:
if (PHP_SAPI === 'cli') { define( "LNBR", PHP_EOL); } else { define( "LNBR", ""); }
After this use LNBR wherever I want to use \n.
LNBR
\n