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