UUID::isUUID

Determine whether a string is a valid UUID or not

Synopsis

public static function string UUID::isUUID(string [in] $str)

Description

UUID::isUUID() tests whether a string consists of a valid UUID.

Parameters

Name Direction Type Description
$str in string The string that is potentially a UUID.

Return Value

If $str is a UUID, then the return value is $str, otherwise null is returned.