Answers for "add a new line in 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
3

new line php

echo "<br>";
Posted by: Guest on December-09-2019
2

php new line

echo "\n";
Posted by: Guest on October-06-2020

Browse Popular Code Answers by Language