Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 636 Bytes

IRI.md

File metadata and controls

35 lines (23 loc) · 636 Bytes

IRI

Functions useful for work with International Resource Identifiers (IRIs)

\Simbiat\HTTP20\IRI::nameOfFunction();

isValidIri

isValidIri(string $iri)

Checks if string is a valid IRI (by trying to convert it to a valid URL first). Returns bool value.

iriToUri

iriToUri(string $iri)

Converts IRI to URI. Returns null in case of failures or a string, if no obvious failures were observed.

restoreUri

restoreUri(array $parsedUri)

Restore array from parse_url() function to original URL.