"Navigation Name 1", "Directory 2" => "Navigation Name 2", "Directory 3" => "Navigation name3"); $ur1=$REQUEST_URI; while($ur1 != ""){ $text=basename"/> "Navigation Name 1", "Directory 2" => "Navigation Name 2", "Directory 3" => "Navigation name3"); $ur1=$REQUEST_URI; while($ur1 != ""){ $text=basename">

Home >Backend Development >PHP Tutorial >flash navigation bar simple navigation bar program written in PHP

flash navigation bar simple navigation bar program written in PHP

WBOY
WBOYOriginal
2016-07-29 08:34:141233browse

//Simple navigation bar program written in PHP
//Navigation bar configuration instructions: The directory name is displayed by default
//If you do not want to use the directory name, please remove the following line of comments and modify the array elements
$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

The above introduces the flash navigation bar. A simple navigation bar program written in PHP, including the content of the flash navigation bar. I hope it will be helpful to friends who are interested in PHP tutorials.

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