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? Link to comment https://forums.phpfreaks.com/topic/286144-string-replace-adding-a-slash-how-come/ 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 Link to comment https://forums.phpfreaks.com/topic/286144-string-replace-adding-a-slash-how-come/#findComment-1468657 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.