Answers for "fwrite next 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

Browse Popular Code Answers by Language