PHP - Replace characters in a string
PHP - Replace characters in a string I have read a number of articles on str_replace() on here and other resources, and not found the answer to my problem. str_replace() Here’s the string I have a problem with which is stored in $title ... $title Paul McCartney's Theme From The Film "The Honorary Consul” Here’s the code I’m using ... str_replace(‘“‘,’ ‘,$title); 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. MySQL INSERT USE PREPARED PDO STATEMENTS!!!! You don't need to worry about thi...