Skip to content

Kirby 4.4.1

alpha

Valid: a-z | A-Z

V::alpha($value, bool $unicode = false): bool

Parameters

Name Type Default
$value * mixed
$unicode bool false

Return type

bool

In your code

if(V::alpha($input)) {
  echo 'Yay, valid!';
}

In Panel fields

fields:
  example:
    label: Example field
    type: text
    validate: alpha