欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

层叠菜单的动态生成_PHP教程

程序员文章站 2022-05-01 15:43:38
...


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";
?>


www.bkjia.comtruehttp://www.bkjia.com/PHPjc/315355.htmlTechArticleHTMLBODY BGCOLOR=FFFFFF FORM ACTION=?php echo $PATH_INFO? METHOD=POST ?php if (isset($hierarchy)){ //$hierarchy[] = $selection; if (isset($hierarchy)){ while(list($level, $sel) = ea...