<?php $source = file_get_contents("http://lasw.gamli.net/s.html"); preg_match_all("/\<a.+>(.+?)<\/a>/i",$source,$match); for ($i = 0; $i <= strlen($match[0]); $i++) { echo $match[0][$i]."<br />"; } ?>