<?php function clean($str){ $re = "/([0-9a-zA-Z\x{600}-\x{6FF}]{0,})/u"; preg_match_all($re, $str, $matches); return isset($matches[0]) ? implode($matches[0]) : ''; } echo clean('a|"bc!@Β£d艾β012艾e^&$ییییfg'); echo "\n"; echo "\n"; echo clean('$$$'); //echo abcd012eییییfg
You have javascript disabled. You will not be able to edit any code.