LMongo\Query\Builder::whereLike PHP Method

whereLike() public method

Add a like statement with $regex operation to logical operation.
public whereLike ( string $column, mixed $value, string $flags = 'im' ) : LMongo\Query\Builder
$column string
$value mixed
$flags string
return LMongo\Query\Builder
    public function whereLike($column, $value, $flags = 'im')
    {
        if (!$value instanceof MongoRegex) {
            $value = new MongoRegex('/' . $value . '/' . $flags);
        }
        return $this->where($column, $value, 'first');
    }
Builder