parseCollection.php
Table of Contents
Functions
- parseCollection() : string|null
- Returns the collection name portion of an ArangoDB document handle (`<collection>/<key>`).
Functions
parseCollection()
Returns the collection name portion of an ArangoDB document handle (`<collection>/<key>`).
parseCollection(string|null $id) : string|null
PHP mirror of the AQL function
PARSE_COLLECTION.
Returns null when the input has no / separator (a bare _key is
not a valid handle and has no collection to extract).
Parameters
- $id : string|null
-
The full document handle (e.g.
"users/abc123").
Tags
Return values
string|null —The collection name, or null when $id is
null / empty / has no /.