isAQLId.php
Table of Contents
Functions
- isAQLId() : bool
- Checks if a value is a string matching the ArangoDB Document ID format (e.g., "collection/key").
Functions
isAQLId()
Checks if a value is a string matching the ArangoDB Document ID format (e.g., "collection/key").
isAQLId(mixed $value) : bool
This function validates the format, not whether the document actually exists. It specifically checks for a string containing exactly one '/' separator, with characters on both sides.
Parameters
- $value : mixed
-
The value to check.
Tags
Return values
bool —True if the value is a string in "collection/key" format, false otherwise.