UUID::iri

Formats a UUID as an IRI

Synopsis

public static function string UUID::iri(string [in] $uuid)

Description

UUID::iri() converts a string representation of a UUID to an IRI (Internationalized Resource Identifier), specifically a UUID URN. For example, the null UUID converted to an IRI would be urn:uuid:00000000-0000-0000-0000-000000000000.

Parameters

Name Direction Type Description
$uuid in string A string representation of a UUID

Return Value

The IRI representation of $uuid, or null if $uuid is not a valid UUID string.