typeName.php
Table of Contents
Functions
- typeName() : string
- Returns the data type name of the given value in AQL.
Functions
typeName()
Returns the data type name of the given value in AQL.
typeName(mixed $value) : string
This helper wraps the ArangoDB AQL function TYPENAME(), which returns a string
representing the type of the provided value.
Possible return values:
"null""bool""number""string""array""object"
Example AQL output:
TYPENAME(doc.age) // "number"
Parameters
- $value : mixed
-
The AQL field or expression to evaluate.
Tags
Return values
string —The formatted AQL expression (e.g., 'TYPENAME(doc.age)').