src/ubdb.php
private function search_term($table, $colname, $term){
    $searchio   = $this->readdb( $table, $colname );

    $returnrows = array();

        foreach( $searchio as $drowname=>$drowval ){

            if( empty($term) || count($term)<1 ){continue;}

        $termcounter = $this->matches($drowval, $term);

            if( $termcounter>0 ){
            $returnrows[$drowname] = $termcounter;
            }
        }

    return $returnrows;
    }
private function search_term($table, $colname, $term){
    $searchio   = $this->readdb( $table, $colname );

    $returnrows = array();

        foreach( $searchio as $drowname=>$drowval ){

            if( empty($term) || count($term)<1 ){continue;}

        $termcounter = $this->matches($drowval, $term);

            if( $termcounter>0 ){
            $returnrows[$drowname] = $termcounter;
            }
        }

    return $returnrows;
    }
private function search_term ( $ table , $ colname , $ term ) { $ searchio = $ this -> readdb ( $ table , $ colname ) ; $ returnrows = array ( ) ; foreach ( $ searchio as $ drowname => $ drowval ) { if ( empty ( $ term ) || count ( $ term ) < 1 ) { continue ; } $ termcounter = $ this -> matches ( $ drowval , $ term ) ; if ( $ termcounter > 0 ) { $ returnrows [ $ drowname ] = $ termcounter ; } } return $ returnrows ; }
Will be return as array contains row key => how many time matched
Will be return as array contains row key = > how many time matched