Answers for "php add line breaks 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
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