yklxmas Posted May 7, 2008 Share Posted May 7, 2008 Hello,I need to convert ″ into ".I'm thinking using preg_replace with a pattern. $pattern = "/″/";$replacement = "\"";preg_replace($pattern, $replacement, $string);I'm not too sure how to do this. Can anyone give me any advice, please? Thanks lots Link to comment Share on other sites More sharing options...
Synook Posted May 7, 2008 Share Posted May 7, 2008 str_replace() would be faster $string = str_replace("″", "\"", $string); Link to comment Share on other sites More sharing options...
yklxmas Posted May 9, 2008 Author Share Posted May 9, 2008 Thanks. I'll give it a try Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.