Generate a globally unique identifier (GUID)

com_create_guid

(PHP 5, PHP 7, PHP 8)

com_create_guidGenerate a globally unique identifier (GUID)

說明

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

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *