predicates.php
Table of Contents
Functions
- predicates() : string|null
- Generate a complex logical expression with multiple predicates.
Functions
predicates()
Generate a complex logical expression with multiple predicates.
predicates(array<string|int, mixed>|null $conditions, string $logicalOperator[, bool $useParentheses = false ][, bool $spacify = true ]) : string|null
Parameters
- $conditions : array<string|int, mixed>|null
-
List of predicate expressions.
- $logicalOperator : string
-
The logical operator to join predicates (e.g., 'AND', 'OR').
- $useParentheses : bool = false
-
Whether to wrap the result in parentheses.
- $spacify : bool = true
Tags
Return values
string|null —The combined expression or null if empty.