public function get_info() { $obj = new venta(); print_r(json_encode($obj->get_info($_POST['idventa']))); }