Home >Backend Development >PHP Tutorial >PHP的栏目导航程序_PHP

PHP的栏目导航程序_PHP

WBOY
WBOYOriginal
2016-06-01 12:36:14849browse

$d_label=array("service"=>"有偿服务","teach"=>"家教中心","union"=>"校园服务联盟","job"=>"学生兼职","free"=>"信息库");
$directory=$REQUEST_URI;
while($directory!="/")
{
  $d_text=basename($directory);
  if(isset($d_label[$d_text])){$d_text=$d_label[$d_text];}
  $d_link=$directory;
  $d_curx="->$d_text";
  $d_komplettx=$d_curx.$d_komplettx;
  $directory=dirname($directory);
}
  echo "栏目导航:".$d_komplettx;
?>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn