parseKey.php
Table of Contents
Functions
- parseKey() : string|null
- Returns the `_key` portion of an ArangoDB document handle (`<collection>/<key>`).
Functions
parseKey()
Returns the `_key` portion of an ArangoDB document handle (`<collection>/<key>`).
parseKey(string|null $id) : string|null
PHP mirror of the AQL function
PARSE_KEY.
If the input has no / separator it is returned as-is — the helper
accepts both full handles ("users/abc123") and bare keys
("abc123") and always returns a usable _key string.
Parameters
- $id : string|null
-
The full document handle (e.g.
"users/abc123") or a bare_key.
Tags
Return values
string|null —The _key portion, or null when $id is null
/ empty.