public static function isChildPerson_workingexperiance($WorkExpId, $ChildWorkExpId) { $ischild = false; $obj_retResult = DAL_managePerson_workingexperiance::getPerson_workingexperianceListByWorkExpId($ChildWorkExpId); //get child node if ($obj_retResult->type == 1) { $arr_Person_workingexperianceList = $obj_retResult->data; $obj_Person_workingexperiance = $arr_Person_workingexperianceList[0]; $arrParentIds = explode(",", $obj_Person_workingexperiance->Url); foreach ($arrParentIds as $Person_workingexperianceParentId) { if ($Person_workingexperianceParentId == $WorkExpId) { $ischild = true; } } } return $ischild; }