← All docs

ctype_alpha()

Checks if all characters in the string are alphabetic.

ctype_alpha()

function ctype_alpha(string $text): bool

Checks if all characters in the string are alphabetic.

Parameters:

  • $text (string)

Returns: bool

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how ctype_alpha is implemented in the compiler, see the internals page.