php keep only letters and numbers

57

php keep only letters and numbers -

$result = preg_replace("/[^a-zA-Z0-9]+/", "", $s);

Comments

Submit
0 Comments