Function validate_iri
A wrapper for filter_var($url, FILTER_VALIDATE_URL)
that can handle URLs
with international characters (a.k.a. IRIs)
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs.php
string |
$iri |
The IRI to test. |
integer |
$flags = null |
Optional flags to pass to filter_var() |
string|boolean
|
Either the original IRI, or false if the IRI was invalid. |