首页 >后端开发 >php教程 >层叠菜单的动态生成_PHP

层叠菜单的动态生成_PHP

WBOY
WBOY原创
2016-06-01 12:42:25815浏览


  if (isset($hierarchy)){
      //$hierarchy[] = $selection;
      if (isset($hierarchy)){
        while(list($level, $sel) = each($hierarchy)){
          echo "";
          echo $level, ': ', $sel, "
n";
          $nextlevel = (int) $level + 1;
        }
    }
  }
  else{
      $nextlevel = 0;
  }
  echo "n";
?>


声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn