If you are error checking and you and to make sure that the content coming over only contains alpha characters you might want to try something like
$my_pattern = "/[a-zA-Z]+$/";
if(preg_match($pattern, $value))
{
return true;
}
or if(!preg_match($my_pattern, $value)) {
echo "some message";
}
The first one returns false if non alpha characters are found.
a-zA-Z is shorthand for the entire alphabet in lower and uppercase - somewhat faster to write.
rinjani