Oihana PHP Arango

equal.php

Table of Contents

Functions

equal()  : string
Returns an AQL expression that checks if the left operand is equal to the right operand.

Functions

equal()

Returns an AQL expression that checks if the left operand is equal to the right operand.

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

Equivalent to the ArangoDB == comparison operator.

Example:

  • 2 == 2 returns true
  • 3 == 2 returns false
Parameters
$leftOperand : mixed

The left-hand value or expression.

$rightOperand : mixed

The right-hand value or expression to compare against.

Tags
example
echo equal('a', 12);
// a == 12

echo equal('doc.age', 18);
// doc.age == 18
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