RESOLVED
This is REALLY annoying, and its just being difficult, all i want to do is replace "\n" with "<br>", But when i run my code all it does is ADD a <br> Tag AFTER the newline!!!:mad: 😕
Heres the code:
<?php
$str = "First Line
Second
Fourth";
$oneline = str_replace("\n","<br>",$str);
/* This Gives:
First Line
<br>Second
<br>
<br>Fourth
*/
?>
Ive also tried ereg_replace() but same answer... I Dont want to have any newlines when its been replaced... Can anyone help? Thanks...