I'm having problems with the eregi_replace function. My code is as follows:
<?php
error_reporting(E_ALL);
$text="This is some text.<br>This is also some text";
$br="<br>";
$nl="\n";
eregi_replace($br,$nl,$text);
echo $text;
?>
What I should be getting is the text stays on one line, but it's not working properly 🙁 Can anyone help?