递归查询获取子项目,适用于无极分类 0){ $curStr = implode(',', $curData); $sql = "select id from kjj_group_info where pid in ({$curStr})"; $nextData = $pdo-fetchData($sql); $retData =array_merge($retData, $curData); $curData =
0){ $curStr = implode(',', $curData); $sql = "select id from kjj_group_info where pid in ({$curStr})"; $nextData = $pdo->fetchData($sql); $retData =array_merge($retData, $curData); $curData =$func->arrayColumn($nextData, 'id'); } return $retData; }