Is Alpha Only

Check if a string contains only alphabetic characters.

Code

General
ctype_alpha($str) ? 'true' : 'false';

Parameters

The string to check

Server

More PHP Snippets