Home > Article > Backend Development > PHP column navigation program_PHP tutorial
$d_label=array("service"=>"Paid Service","teach"=>"Tutoring Center","union"=>"Campus Service Union","job"= >"Student part-time job","free"=>"Information library");
$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 "Column navigation:".$d_komplettx;
?>