Integer
Checks for a valid integer value
-
return (boolean)
In your code
if(v::integer(12)) {
echo 'Yay, valid!';
}
In fields
fields:
example:
label: Example field
type: text
validate: integer
Checks for a valid integer value
if(v::integer(12)) {
echo 'Yay, valid!';
}
fields:
example:
label: Example field
type: text
validate: integer