Answers for "add new line t string 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
1

php new line

return nl2br("This is the cointracker sample text.\nThis should be line 2!");
Posted by: Guest on February-22-2021

Browse Popular Code Answers by Language