getGloballyUniqueId()
getGloballyUniqueId(string $prefix = '', boolean $withDashes = true, boolean $upperCase = false) : string
Generate a random version 4 Globally Unique Identifier (GUID) standard string.
Note: The identifier string uses 32 alphanumeric characters and 4 hyphens (optional).
Parameters
string | $prefix | Optional prefix for output strings (default => ''). |
boolean | $withDashes | Flag for using dashes format (default => true). |
boolean | $upperCase | Flag for using uppercase format (default => false). |
Throws
- \Exception
Validation errors.
Returns
string —Randomly generated GUID string representing a 128-bit number.