php string only letters
snippet in php

php string only letters

user8916

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