aqlAssignments.php
Table of Contents
Functions
- aqlAssignments() : string|null
- Builds a list of AQL assignments (key/value pairs) from an array.
Functions
aqlAssignments()
Builds a list of AQL assignments (key/value pairs) from an array.
aqlAssignments(array<string|int, mixed>|null $assignments[, string $separator = Char::COMMA . Char::SPACE ][, string $comparator = Operator::ASSIGN ]) : string|null
This is used for COLLECT ... ASSIGN, COLLECT ... AGGREGATE,
FOR ... UPDATE, FOR ... REPLACE, etc.
Parameters
- $assignments : array<string|int, mixed>|null
-
Array of assignments, e.g., ['key' => 'value'].
- $separator : string = Char::COMMA . Char::SPACE
-
Separator between pairs (e.g., ", ").
- $comparator : string = Operator::ASSIGN
-
Comparator between key and value (e.g., " = ").