Answers for "how to include new line when writing to txt file 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

Code answers related to "how to include new line when writing to txt file php"

Browse Popular Code Answers by Language