print multi line html in php code example
Example 1: Write Multi-Line Strings in PHP
phpCopy<?php
$mystring1 = "This is the first line." . PHP_EOL;
$mystring2 = "This is the second line";
$mystring1 .= $mystring2;
echo($mystring1);
?>
Example 2: Write Multi-Line Strings in PHP
phpCopy<?php
echo("This is the first line \n\nThis is the third line");
?>