public function any(array $criteria) : self
    {
        $sql = [];
        $par = [];
        foreach ($criteria as $row) {
            if (isset($row[1])) {
                $temp = $this->filterSQL($row[0], $row[1] ?? null, $row[2] ?? false);
                $sql[] = $temp[0];
                $par = array_merge($par, $temp[1]);
            }
        }
        return $this->where('(' . implode(' OR ', $sql) . ')', $par);
    }
public function any(array $criteria) : self
    {
        $sql = [];
        $par = [];
        foreach ($criteria as $row) {
            if (isset($row[1])) {
                $temp = $this->filterSQL($row[0], $row[1] ?? null, $row[2] ?? false);
                $sql[] = $temp[0];
                $par = array_merge($par, $temp[1]);
            }
        }
        return $this->where('(' . implode(' OR ', $sql) . ')', $par);
    }
public function any ( array $ criteria ) : self { $ sql = [ ] ; $ par = [ ] ; foreach ( $ criteria as $ row ) { if ( isset ( $ row [ 1 ] ) ) { $ temp = $ this -> filterSQL ( $ row [ 0 ] , $ row [ 1 ] ?? null , $ row [ 2 ] ?? false ) ; $ sql [ ] = $ temp [ 0 ] ; $ par = array_merge ( $ par , $ temp [ 1 ] ) ; } } return $ this -> where ( '(' . implode ( ' OR ' , $ sql ) . ')' , $ par ) ; }
Filter the results matching any of the criteria
@param  array $criteria  each row is a column, value and optional negate flag (same as filter method)
@return $this
Filter the results matching any of the criteria