Oihana PHP Arango

noneNotIn.php

Table of Contents

Functions

noneNotIn()  : string
Returns an AQL expression that checks if none of the elements of an array are contained in another array (NOT IN).

Functions

noneNotIn()

Returns an AQL expression that checks if none of the elements of an array are contained in another array (NOT IN).

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

Equivalent to the ArangoDB NONE NOT IN array comparison operator.

Example:

  • [ 1, 2, 3 ] NONE NOT IN [ 1, 2, 3 ] returns true
  • [ 1, 2, 3 ] NONE NOT IN [ 4, 5, 6 ] returns false
Parameters
$leftOperand : mixed

The array or expression to evaluate.

$rightOperand : mixed

The array or expression to test membership against.

Tags
example
echo noneNotIn('[ 1, 2, 3 ]', '[ 1, 2, 3 ]');
// [ 1, 2, 3 ] NONE NOT IN [ 1, 2, 3 ]

echo noneNotIn('tags', '[ "a", "b" ]');
// tags NONE NOT IN [ "a", "b" ]
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