sniped22 Posted July 17, 2007 Share Posted July 17, 2007 I don't understand preg and i have been trying for quite some time. Is there a find and replace function that just takes parameters and does the work for you? for example: find_replace($strtofind, $strtoreplacewith); when parsing any text editor file (.txt, .php, etc) Thanks! Quote Link to comment Share on other sites More sharing options...
lightningstrike Posted July 17, 2007 Share Posted July 17, 2007 do you mean a function like str_replace($search,$replace,$string); ? Quote Link to comment Share on other sites More sharing options...
paul2463 Posted July 17, 2007 Share Posted July 17, 2007 yes there is. have a look <a href="http://uk.php.net/str_replace">here at the manual for str_replace()</a> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.