Function __global->generate_guid

Definitions

sources/global4.php

  • Generate a v4 GUID.This is not cryptographically secure. For secure GUIDs, see get_secure_random_v4_guid() in crypt.php.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Returns

  • A GUID
  • Type: ID_TEXT
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Generate a v4 GUID.This is not cryptographically secure. For secure GUIDs, see get_secure_random_v4_guid() in crypt.php.
 *
 * @return ID_TEXT A GUID
 */

function generate_guid() : string