UUID::formatted

Format a UUID in the traditional aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee form

Synopsis

public static function string UUID::formatted(string [in] $uuid, $prefix = null, $suffix = null)

Description

UUID::iri() converts a string representation of a UUID in the traditional form. For example, the null UUID converted to an IRI would be 00000000-0000-0000-0000-000000000000.

Parameters

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

Return Value

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