mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
397 B
397 B
Ip
v::ip()
v::ip(mixed $options)
Validates IP Addresses. This validator uses the native filter_var() PHP function.
v::ip()->validate('192.168.0.1');
You can pass a parameter with filter_var flags for IP.
v::ip(FILTER_FLAG_NO_PRIV_RANGE)->validate('127.0.0.1'); // false
See also: