Oihana PHP Arango

noneIn.php

Table of Contents

Functions

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

Functions

noneIn()

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

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

Equivalent to the ArangoDB NONE IN array comparison operator.

Example:

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

The array or expression to evaluate.

$rightOperand : mixed

The array or expression to test membership in.

Tags
example
echo noneIn('[ 1, 2, 3 ]', '[ 4, 5, 6 ]');
// [ 1, 2, 3 ] NONE IN [ 4, 5, 6 ]

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