mirror of
https://github.com/Respect/Validation.git
synced 2024-06-29 10:40:24 +02:00
450 B
450 B
Url
v::url()
Validates if input is an URL:
v::url()->validate('http://example.com'); //true
v::url()->validate('https://www.youtube.com/watch?v=6FOUqQt3Kg0'); //true
v::url()->validate('ldap://[::1]'); //true
v::url()->validate('mailto:john.doe@example.com'); //true
v::url()->validate('news:new.example.com'); //true
This rule uses FilterVar
See also: