public function get($field, $key, $val)
    {
        $db = $this->load();
        foreach ($db as $index => $row) {
            if ($row[$key] === $val && $row[$field]) {
                return $row[$field];
                break;
            }
        }
        return null;
    }
public function get($field, $key, $val)
    {
        $db = $this->load();
        foreach ($db as $index => $row) {
            if ($row[$key] === $val && $row[$field]) {
                return $row[$field];
                break;
            }
        }
        return null;
    }
public function get ( $ field , $ key , $ val ) { $ db = $ this -> load ( ) ; foreach ( $ db as $ index => $ row ) { if ( $ row [ $ key ] === $ val && $ row [ $ field ] ) { return $ row [ $ field ] ; break ; } } return null ; }
Get the value of the specified field of the first row where a specified field contains a specified value.

@param string $field the name of the field to return
@param string $key   the name of the field to search for
@param string $val   the value of the field to search for
@return string       the value of the specified field
Get the value of the specified field of the first row where a specified field contains a specified value .