Generate a globally unique identifier (GUID)

# com_create_guid

(PHP 5, PHP 7, PHP 8)

com_create_guid — Generate a globally unique identifier (GUID)

### 说明

function com_create_guid(): string|false

Generates a Globally Unique Identifier (GUID).

A GUID is generated in the same way as DCE UUID's, except that the Microsoft convention is to enclose a GUID in curly braces.

### 参数

此函数没有参数。

### 返回值

Returns the GUID as a string, 或者在失败时返回 `false`.

### 参见

- uuid_create() in the PECL uuid extension

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open