Introduction

You can specify multi-line strings in PHP.

Insert newlines into the string literal between the quotation marks:

Demo

$myString = "
test:/*from w  ww . j av  a 2 s  .  c  o  m*/
test;
test
";

echo $myString;

Result

Related Topic