Oihana PHP Arango

anyNotIn.php

Table of Contents

Functions

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

Functions

anyNotIn()

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

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

Equivalent to the ArangoDB ANY NOT IN array comparison operator.

Example:

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

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