assertBindVariable.php
Table of Contents
Functions
- assertBindVariable() : void
- Asserts that the provided string is a valid ArangoDB bind variable name.
Functions
assertBindVariable()
Asserts that the provided string is a valid ArangoDB bind variable name.
assertBindVariable(string|null $to) : void
A valid bind variable:
- May optionally start with '@'
- Must start with a letter (a-zA-Z) or underscore '_'
- Subsequent characters can be letters, digits, or underscores
Null is considered valid and ignored.
Valid examples:
@userIdfoo_bar123
Invalid examples:
123abc(starts with a digit)@!invalid(invalid character '!')user-id(hyphen not allowed)
Parameters
- $to : string|null
-
The bind variable to validate. Null is allowed.