isAlphanumeric

Determine if the string is composed of alphanumeric characters.

Twine\Str::isAlphanumeric() : bool

Examples

$string = new Twine\Str('JohnPinkerton123');

        $string->isAlphanumeric(); // Returns true
$string = new Twine\Str('john pinkerton');

        $string->isAlphanumeric(); // Returns false