check if string is onlu char php code example Example: if is alphabet php ctype_alpha ( string $text ) : bool