SQL Where operator in PHP.
<?php
use function Qubus\Support\Helpers\php_where;
php_where(string $key, string $operator, mixed $pattern): bool;
$key (string) (required) Term to search.
$operator (string) (required) The filter to perform.
$pattern (mixed) (required) Term to check against.
(bool) Will return true
if condition matches, false
otherwise.
<?php
// Where dog is in ['cat', 'bear', 'chicken', 'dog']
php_where('dog', 'in', ['cat', 'bear', 'chicken', 'dog']); // true
Last Updated on August 14, 2024 by Joshua