sorry for not beeing able to put the title exactly what my question, I can't find a way to ask it.
So im trying to replace all '
in a text inside and replace it for '
in php
I have a variable $desc = "he's such a good person and he'll be very successfull";
and I'm trying to do the following
$desc = str_replace("'","'",$desc);
But no success is there a way to use regex in str_replace
?
Yes it looks to be fine now... for some reason.
Is there a way to use regex for it?
for example to remove html tags from the text?
$desc = "<strong> he's such a good person </strong> <br /> he'll be very successfull";
$desc = str_replace("<*>"," ",$desc);