IP

Checks for a valid IP address

  • return (boolean)

In your code

if(v::ip('127.0.0.1')) {
  echo 'Yay, valid!';
}

In fields

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