Functions useful for work with International Resource Identifiers (IRIs)
\Simbiat\HTTP20\IRI::nameOfFunction();
isValidIri(string $iri)
Checks if string is a valid IRI (by trying to convert it to a valid URL first). Returns bool
value.
iriToUri(string $iri)
Converts IRI to URI. Returns null
in case of failures or a string, if no obvious failures were observed.
restoreUri(array $parsedUri)
Restore array from parse_url()
function to original URL.