- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
$Not = array('\\',",","/","¬","#",";",":","~","[","]","{","}",")","(","*","^","%","$","<",">","?","!",'"',"'","|");
...
function check($string){
$string = preg_replace("/[^a-zA-Z a-яА-яёЁ]/i", "",$string);
$string = str_replace($Not,'',$string);
$string = htmlspecialchars($string);
return $string;
}
7ion 10.04.2013 18:43 # +2
>А-я
Норм.
rdifb0 10.04.2013 18:48 # 0
straga_coda 10.04.2013 20:37 # 0
rdifb0 10.04.2013 21:29 # +2
Lure Of Chaos 10.04.2013 18:57 # +4