Hi All,
I'm trying to replace all occurances of ' to ’, which is it's character code in HTML. How to I get str_place to search for '?

$data=str_replace("’","\'",$data);

Cheers,

You have the single quote inside double quotes you do not need to escape it. Right now the function it looking for \' to replace with ’

$data=str_replace("’","'",$data);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.