public function mantePersonaDerHab($p_acc, $p_iid, $arrP) { $cAfiliacion = $arrP["p38"]; $arrCodigo = $arrP["p39"]; $arrDerHab = $arrP["p41"]; $c_cod_per_r = $p_iid; for ($i = 1; $i <= count($arrCodigo); $i++) { $c_cod_per = $arrCodigo[$i]; $c_cod_per_h = $arrDerHab[$i]; $o_DPersona = new DPersonas(); $op = $o_DPersona->mantePersonaDerHab($cAfiliacion, $c_cod_per, $c_cod_per_r, $c_cod_per_h); } }