public function verif_asiento() { $obj = new venta(); print_r(json_encode($obj->verif_asiento($_POST))); }