Oihana PHP Arango

logicalAnd.php

Table of Contents

Functions

logicalAnd()  : string
Returns an AQL expression that combines two predicates using the logical AND operator (&&).

Functions

logicalAnd()

Returns an AQL expression that combines two predicates using the logical AND operator (&&).

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

This function mirrors the LogicalTrait::and() method with a standalone functional API.

Example semantics:

  • a == 2 && b == 3
Parameters
$leftOperand : mixed

The left-hand expression/predicate.

$rightOperand : mixed

The right-hand expression/predicate.

Tags
example

echo logicalAnd('a == 2', 'b == 3'); // a == 2 && b == 3

see
https://docs.arangodb.com/stable/aql/operators/#logical-operators
since
1.0.0
author

Marc Alcaraz

Return values
string

The AQL predicate string.

On this page

Search results