xwishmasterx Posted February 12, 2014 Share Posted February 12, 2014 Hello doing a simple "preg_replace", but ending up with an extra " / ".. $str = preg_replace("/'/", "%27", $str); Seems the "%" is adding an extra "/".. Anyone can help me explain why, and what the solution is? Quote Link to comment Share on other sites More sharing options...
.josh Posted February 12, 2014 Share Posted February 12, 2014 what is the original content of $str and what are you doing with the altered $str afterwards 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.