Answers for "echo break line php"

PHP
2

append new line php

$data = 'some data'.PHP_EOL;
$fp = fopen('somefile', 'a');
fwrite($fp, $data);
Posted by: Guest on May-28-2020
3

php newline

"\r\n"
Posted by: Guest on February-15-2020
0

php line break in echo

echo "Thanks for your email" ."<br>". "Your orders details are below:"
Posted by: Guest on March-27-2021
2

php new line

//let a variable contain multiple line
//add <br> tag in string
$variable = "123 <br> ";
Posted by: Guest on June-09-2020

Browse Popular Code Answers by Language