fwrite doesn't break the line

KatoW1937

New Member
I'm writing this:\[code\] $fh = fopen('public/newsletter.txt', 'w'); foreach($entries as $row) { fwrite($fh, 'e-mail\n'); fwrite($fh, $row->new_email . ';'); } fclose($fh);\[/code\]Expecting it to be\[code\][email protected];\[/code\]But I'm getting\[code\]e-mail\[email protected];\[/code\]How do I fix this?
 
Back
Top