Alphanum

Valid: A-Z and 0-9

  • return (boolean)

In your code

if(v::alphanum($input)) {
  echo 'Yay, valid!';
}

In fields

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

Is something missing or incorrect? Edit this page on Github…