/** * main service function. * @param type $idArrGroup */ function execute($idArrGroup) { $tmp = getCompareResult($idArrGroup[0], $idArrGroup[1]); $result['status'] = 0; $result['data'] = $tmp; $result['statics'] = getCompareStatics($tmp); echo json_encode($result); }
/** * main service function. * @param type $idArrGroup */ function execute($idArr1, $idArr2, $num) { $tmp = getCompareResultWithCustomNum($idArr1, $idArr2, $num); $statics = getCompareStatics($tmp); print_r($statics); }