I have a csv file.
In this, I have a bad character : arr‰t. I would this "arret"
I test this : $bodytag = str_replace("‰", "e",$content); doesn't work.
So I search a query which I say : find a word start with "arr" and end with "t" and remplace all the string by "arret". I find a function to get content between but I can't do my query.
function str_between($str,$start,$end) {
if (preg_match_all('/' . preg_quote($start) . '(.*?)' . preg_quote($end) . '/',$str,$matches)) {
return $matches[1];
}
// no matches
return false;
}
Can you help me?