Oihana PHP Arango

isLike.php

Table of Contents

Functions

isLike()  : string
Returns an AQL expression that checks if the left string matches the right LIKE pattern.

Functions

isLike()

Returns an AQL expression that checks if the left string matches the right LIKE pattern.

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

Equivalent to the ArangoDB LIKE comparison operator.

Example:

  • "foo" LIKE "f%" returns true
  • "bar" LIKE "f%" returns false
Parameters
$leftOperand : mixed

The string value or expression to test.

$rightOperand : mixed

The LIKE pattern expression.

Tags
example
echo isLike('"foo"', '"f%"');
// "foo" LIKE "f%"

echo isLike('doc.name', '"A_%"');
// doc.name LIKE "A_%"
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