function xmlEscape($string) {
    return str_replace(array('&', '<', '>', '\'', '"','/','“','”'), array('&', '<', '>', ''', '"','/', '"', '"'), $string);
}
I tried the str_replace() function in php but it is not recognising these double quotation marks.
The rest of all characters are escaping only problem is with  ” “ these 2 special characters 
For example, i gave the input to $string='23”'.
So it is stored in the MYSQL database as "23â€".
I want the str_replace() output to be "23""
 
    