aqlSerialize.php
Table of Contents
Functions
- aqlSerialize() : string
- Serialize a value (array, object, scalar) into an AQL fragment.
Functions
aqlSerialize()
Serialize a value (array, object, scalar) into an AQL fragment.
aqlSerialize(mixed $value[, bool $topLevel = true ]) : string
CustomRules:
- Strings are returned as-is (raw expression)
- Associative arrays => {key:value}
- Indexed arrays => [v1,v2,...]
- Objects => {key:value} using public properties
- JsonSerializable objects are jsonSerialized first
Parameters
- $value : mixed
- $topLevel : bool = true