Codice PHP:
$tagTitle = array(
"index.php" => "Home Page",
"chi-siamo.php" => "Chi Siamo",
"servizi.php" => "Servizi"
);
function ActiveLink() {
global $tagTitle;
foreach($tagTitle as $link => $activeLink) {
if($link == $current) {
echo "id=\"current\"";
}
}
}