Oihana PHP Arango

allIn.php

Table of Contents

Functions

allIn()  : string
Returns an AQL expression that checks if **all elements** of an array are contained in another array.

Functions

allIn()

Returns an AQL expression that checks if **all elements** of an array are contained in another array.

allIn(mixed $leftOperand, mixed $rightOperand) : string

Equivalent to the ArangoDB ALL IN array comparison operator.

Example:

  • [1, 2, 3] ALL IN [1, 2, 3] returns true
  • [1, 2, 4] ALL IN [1, 2, 3] returns false
Parameters
$leftOperand : mixed

The array or expression to evaluate.

$rightOperand : mixed

The array or expression to check membership against.

Tags
example
echo allIn('[1, 2, 3]', '[1, 2, 3]');
// [1, 2, 3] ALL IN [1, 2, 3]

echo allIn('scores', '[10, 20, 30]');
// scores ALL IN [10, 20, 30]
see
https://docs.arangodb.com/stable/aql/operators/#array-comparison-operators
since
1.0.0
author

Marc Alcaraz

Return values
string

The AQL predicate string.

On this page

Search results