Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<COM Functionscom_event_sink>
^COM FunctionsLast updated: Mon, 26 Oct 2026

com_create_guid

(PHP 5, PHP 7, PHP 8)

com_create_guid — Generate a globally unique identifier (GUID)

Description

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.

Parameters

This function has no parameters.

Return Values

Returns the GUID as a string, or false on failure.

See Also

  • uuid_create() in the PECL uuid extension


<COM Functionscom_event_sink>
^COM FunctionsLast updated: Mon, 26 Oct 2026