I am getting data from a json array which contains the special character "Â " which I'd like to remove.
$jsonString = preg_replace("#Â+\s#", "", $jsonString);
$jsonString = preg_replace("#<p>Â.*</p>#", "", $jsonString);
$jsonString = str_replace("Â ", "", $jsonString);
The above lines are some of the code I've tried using to no avail. So the first question in mind is, is it even possible to use str_replace or preg_replace in json data? If not, is there any other function I can use to remove the specified special character from the string?
$jsonString=str_replace("Â ", "", $jsonString);. Also the first regex is invalid FYI - no delims.mb_str_replaceon PHP.net