Integer

Checks for a valid integer value

  • return (boolean)

In your code

if(v::integer(12)) {
  echo 'Yay, valid!';
}

In panel fields

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