hola tengo este problema :
Código PHP:
<?php
$array_archivo = file("http://www.tump3s.com/nirvana-mp3-download/");
$html = implode("", $array_archivo);
preg_match_all("/<wbr>(.*?)<\/wbr>/","$html",$titulo);
preg_match_all("/<wbr> <a href\=\"(.*?)\">MP3 Download<\/a>/","$html",$url_mp3);
echo"<ul>";
for($i=0; $i<=19; $i++) {
echo "<li><a href=\"$url_mp3[1]\">$titulo</a></li>";
}
echo"</ul>";
?>
trate de hacerlo con un simple for perooo me sale una lista con solo array , asi que busque documentacion sobre foreach y no entendi muy bien , espero me puedan ayudar. gracias.