Patrick3002 Posted October 20, 2006 Share Posted October 20, 2006 Hi, i was wondering if anyone could help me with this code:[code]<form name="strreplace" action="strreplace.php" method="post"><textarea name="main" cols="50" rows="40" wrap="VIRTUAL" id="main"></textarea><input type="submit" value="Submit"></form><?$main=$_POST['main'];$main = str_replace("c:","<br>f:","$main");echo nl2br(stripslashes($main));?>[/code]Now i was wondering instead of replacing "c:" with "f:" is it possible to replace a [u][i][b]"[/b][/i][/u] with [u][i][b]\"[/b][/i][/u] Link to comment https://forums.phpfreaks.com/topic/24512-string-replace-help/ Share on other sites More sharing options...
Patrick3002 Posted October 20, 2006 Author Share Posted October 20, 2006 I've figured it out, thanks anyways. Link to comment https://forums.phpfreaks.com/topic/24512-string-replace-help/#findComment-111675 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.