isalpha()

Examples


The isalpha() function indicates whether a string expression contains only alphabetic characters.

Syntax

isalpha(string_expression {, allow_spaces})

Parameters

string_expression – The string that will be examined to find out whether it contains only alphabetic characters.

allow_spaces – An optional boolean parameter that specifices whether spaces are allowed in string_expression. The value true indicates spaces are considered alphabetic characters, while false indicates they are not. The default value is true.

Return value

A boolean. True indicates the entire string expression is composed of alphabetic characters, while false indicates it is not.

Comments

The isalpha() function returns true if the empty string ("") is passed in as the string expression.


Documentation Feedback