Num

Checks for a valid number

  • return (boolean)

In your code

if(v::num(1.0)) {
  echo 'Yay, valid!';
}

In fields

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

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