why not use nl2br() ?

At 01:28 PM 5/24/2004, GodFoca wrote:
What's the best way of replacing every ocurrence of a substring in a LARGE
string by another (longer) substring?
Specifically, I have read the contents of a file into a tring with fread,
and now I want to replace all "\n" with "<br>"

Thanks in advance
Nicolas Sanguinetti

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to