#si',$content,$matches); //var_dump($matches); foreach ($matches[0] as $key => $p) { if(preg_match('/color:\s*#333399;/si',$p)){ $conArr[]['tit'] = preg_replace('/<[^<]+?>/si', '', $p); }else{ if(count($conArr) != 0){ $conArr[count($conArr)-1]['step'] .= $p; } } } //var_dump($conArr); return $conArr; } $cats = array_merge(subcategory($catid)); foreach($cats as $k => $cat){ $cats[$k]['sub'] = array_merge(subcategory($cat['catid'])); } foreach ($cats as $k => $cat) { foreach ($cat['sub'] as $i => $subcat) { if(preg_match('/\d+$/',$subcat['abbr'],$match)){ $cats[$k]['sub'][$i]['steps'] = getContent($match[0]); } } } //var_dump($cats); ?>
您的位置:首页>深窗帮办>办事指南>深圳失业保险