Thanks for your suggestion.
As a rule of thumb, I usually think of a solution right after I give up and post a question. In this case, I used:
function checkletters($string) {
$bad = eregi_replace("([a-zA-Z]+)","",$string);
if($bad == "") {
return false;
} else {
return true;
}...