Skip to content
Mo McRoberts edited this page Aug 7, 2011 · 1 revision

Determine whether a string is a valid UUID or not

Synopsis

uses('uuid');

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

Description

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

Example

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.

Clone this wiki locally