views:

77

answers:

2

I am using this but it is not working:

$replaced = str_replace(''', '"', $text);

Any help would be appreciated.

+5  A: 

Try this:

$replaced = str_replace('\'', '"', $text);

OR

$replaced = str_replace("'", '"', $text);
A: 

$replaced = str_replace('\'', '"', $text);

nico