stringifyOptions.php
Table of Contents
Functions
- stringifyOptions() : array<string, mixed>
- Coerces boolean entries of a server-options array to the lowercase `"true"` / `"false"` spelling ArangoDB expects when these options travel on the query string of a request.
Functions
stringifyOptions()
Coerces boolean entries of a server-options array to the lowercase `"true"` / `"false"` spelling ArangoDB expects when these options travel on the query string of a request.
stringifyOptions(array<string, mixed> $options) : array<string, mixed>
Non-boolean values are forwarded as-is. Integer, float and string
options keep their wire shape; only the booleans are normalised,
because Guzzle would otherwise serialise PHP true / false as
"1" / "" — which ArangoDB rejects.
Pure function (no state, no side effects). Used by every surface of the client that forwards a per-call options array as query parameters:
- Collection,
- GraphVertexCollection,
- GraphEdgeCollection,
- and the bulk import / batch flows.
Parameters
- $options : array<string, mixed>