php check if string only contains letters code example Example: if is alphabet php ctype_alpha ( string $text ) : bool