Jump to content

convert curly double quotes into straight double quotes


yklxmas

Recommended Posts

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

str_replace() would be faster

$string = str_replace("″", "\"", $string);

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...