 |
Bara ett inlägg till!
|
|
Reg.datum: Mar 2006
Inlägg: 1 667
|
|
Bara ett inlägg till!
Reg.datum: Mar 2006
Inlägg: 1 667
|
Citat:
Originally posted by Per@Apr 23 2007, 16:35
Kod:
function foo($str, $allowed_values) {
return preg_replace('#[^'.$allowed_values.']#', '', $str);
}
echo foo('=)(009asda', '0-9a-zåäö');
En variant.
|
tack så jättemkt
du e kung
|