I have read a number of articles on str_replace()
on here and other resources, and not found the answer to my problem.
Here’s the string I have a problem with which is stored in $title
...
Paul McCartney's Theme From The Film "The Honorary Consul”
Here’s the code I’m using ...
str_replace(‘“‘,’ ‘,$title);
For some reason, the code above is completely ignoring this string, and a number of others similar.
I think it may be because of the Apostrophe as the above code works fine for strings which don’t have apostrophe’s as part of the text.
I need to keep the apostrophe in the title, but I’m not so worried about the “
However, if someone can suggest a way to keep both, in the same string, and add the whole string in a MySQL INSERT
command string, that would be the best result for me.