Matt Posted November 30, 2006 Report Share Posted November 30, 2006 I'm looking for a function that can do the following:$i = abc123bcThe function would then search $i, and for every instance that bc occurs, (without a preceding it!) it then changes that bc to abc.So:$i = abc123bcMagicFunction($i);echo $i;Outbut:abc123abcThanks! Quote Link to post Share on other sites
Matt Posted November 30, 2006 Author Report Share Posted November 30, 2006 Never mind, got it str_replace() Quote Link to post Share on other sites
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.