How can i remove all Russian letters from a string in PHP ?
Or the opposite, i would like to keep only.
English letters, white space, numbers and all the signs like !@#$%^&*(){}":?><>~'"
How can i accomplish that, Thank you.
i figure it out, i replace all Russian cherecters with ### and then i substring from the start to the end.
$desc = preg_replace('/[а-я]+/iu','###', $desc);
$start = strpos ($desc,'###');
$end =strrpos ($desc,"###");
if($start!==false)
{
$descStart = substr($desc,0,$start);
$descEnd = substr($desc,$end+3);
$desc = $descStart.$descEnd;
}