Home > Backend Development > PHP Tutorial > Simple navigation bar program written in PHP_PHP tutorial

Simple navigation bar program written in PHP_PHP tutorial

WBOY
Release: 2016-07-21 16:03:25
Original
947 people have browsed it

//Simple navigation bar program written in PHP
//Navigation bar configuration instructions: The default display is the directory name
//If you do not want to use the directory name, please remove the following line Comment, and modify the array element
$label=
array("Directory 1" => "Navigation name 1", "Directory 2" => "Navigation name 2", "Directory 3" => "Navigation name 3");
$ur1=$REQUEST_URI;
while($ur1 != ""){
$text=basename($ur1);
//Get the file name
if(isset($label[$text]))
{$text=$label[$text]; }
$link=$ur1;
$curx= " > $text";
$komplettx= $curx.$komplettx;
$ur1=dirname($ur1);
//Get the directory name
}

echo $komplettx;

?>

//You can use include to call this program in the page

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/316331.htmlTechArticle//Simple navigation bar program written in PHP?php //Navigation bar configuration instructions: The default display is Directory name // If you do not want to use the directory name, please remove the following line of comments and modify the array element...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template