我如何获得get()函数的值

Sorry I am still beginner in Object oriented PHP. I want to ask if how do I get the data from get() function on my class.db.php in my index.page

class.db.php

    public function get($table, $where){
        return $this->action('Select *', $table, $where);
}

Index.php what script do I put to retrieve the data?????

you need to make the object of the class in order to call its function

class myclass {
  public function get($table, $where){
        return $this->action('Select *', $table, $where);
}

}

$table=htmlspecialchars($_POST['table']);
$where=htmlspecialchars($_POST['where']);
$obj=new myclass();

$var=$obj->get($table, $where);