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
Checks for a valid number
if(v::num(1.0)) {
echo 'Yay, valid!';
}
fields:
example:
label: Example field
type: text
validate: num