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 .ja v  a2s.co m
test;
test
";

echo $myString;

Result

Related Topic