¿Esta parte mejor asi?
Código PHP:
function enlace($enlace) {
$videos=lista();
foreach ($videos as $clave=>$valor) {
if ($valor[0]==$enlace) {
print "<a href='".str_replace("ñ","n",strtolower($enlace)).".html'>".str_replace("_"," ",$enlace)."</a> ";
}
}
}