Answers for "printf new line php"

PHP
1

php fwrite new line

$data = 'my data' . PHP_EOL . 'my data';
$fp = fopen('my_file', 'a');
fwrite($fp, $data);
fclose($fp);
Posted by: Guest on December-13-2020
4

php newline

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

php newline

‘\n’ or ‘\r\n’ is the easiest way to embed newlines in a PHP string
Posted by: Guest on April-07-2022

Browse Popular Code Answers by Language