In general, I can not understand what it is, skips the Latin alphabet and numbers, but does not miss the Cyrillic alphabet.
$filterinput = array( "TEXT" => array("^[а-яА-Яa-zA-Z0-9_/]*$","только буквы и цифры") ); return preg_match('~'. $filterinput[$type][0] .'~', $value); Any errors I do not see what could be the problem I do not understand.
How to solve this problem?