Oihana PHP Arango

anyNotEqual.php

Table of Contents

Functions

anyNotEqual()  : string
Returns an AQL expression that checks if **any elements** of an array are **not equal** to a given value.

Functions

anyNotEqual()

Returns an AQL expression that checks if **any elements** of an array are **not equal** to a given value.

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

Equivalent to the ArangoDB ANY != array comparison operator.

Example:

  • [ 1, 2, 3 ] ANY != 4 returns true
  • [ 2, 2, 2 ] ANY != 2 returns false
Parameters
$leftOperand : mixed

The array or expression to evaluate.

$rightOperand : mixed

The value or expression to compare against.

Tags
example
echo anyNotEqual('[ 1, 2, 3 ]', 2);
// [ 1, 2, 3 ] ANY != 2

echo anyNotEqual('scores', 10);
// scores ANY != 10
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