Oihana PHP Arango

uuid.php

Table of Contents

Functions

uuid()  : string
Return a universally unique identifier (UUID).

Functions

uuid()

Return a universally unique identifier (UUID).

uuid() : string

This helper wraps the ArangoDB AQL function UUID() which generates and returns a universally unique identifier. UUIDs are useful for generating unique identifiers that are globally unique across different systems and time periods.

Example AQL usage:

UUID()                        // returns something like "550e8400-e29b-41d4-a716-446655440000"
UUID()                        // returns a different UUID each time
Tags
example
use function oihana\arango\db\functions\strings\uuid;

$expr = uuid();
// Produces: 'UUID()'
see
https://docs.arangodb.com/3.12/aql/functions/string/#uuid
randomToken()

For generating random tokens.

since
1.0.0
author

Marc Alcaraz

Return values
string

The formatted AQL expression.

On this page

Search results