Multiple substring replacement
| From: | GodFoca | Date: | Mon, 24 May 2004 20:28:37 +0000 |
| Subject: | Multiple substring replacement | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-186844@lists.php.net to get a copy of this message | ||
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