Oihana PHP Arango

allNotIn.php

Table of Contents

Functions

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

Functions

allNotIn()

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

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

Equivalent to the ArangoDB ALL NOT IN array comparison operator.

Example:

  • [1, 2, 3] ALL NOT IN [4, 5, 6] returns true
  • [1, 2, 3] ALL NOT 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 allNotIn('[1, 2, 3]', '[4, 5, 6]');
// [1, 2, 3] ALL NOT IN [4, 5, 6]

echo allNotIn('scores', '[10, 20, 30]');
// scores ALL NOT 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