echo break line php code example
Example 1: append new line php
$data = 'some data'.PHP_EOL;
$fp = fopen('somefile', 'a');
fwrite($fp, $data);
Example 2: php line break in echo
echo "Thanks for your email" ."<br>". "Your orders details are below:"
Example 3: php new line
//let a variable contain multiple line
//add <br> tag in string
$variable = "123 <br> ";
Example 4: adding a line to html php
echo "kings \n garden";