I tried to change character 'ç' with 'c' in a string using preg_replace() function. This segment of my code where i am trying to do it.
echo $mystr; // The output of it is : çanakkale
$pattern = array("'ç'");
$replace = array('c');
$mystr = preg_replace($pattern, $replace, $mystr);
echo $mystr;
This code works when i add before this line before the first line:
$mystr = "çanakkale";
However when I get this string from Database this code has no effect on it. How can I fix it? Any kind of help will be appreciated.