preg_match_all('/http:\/\/www\.laweb\.com\/pepe\/fichero\.php\?id=(\d+)/', $elhtml, $matches);var_dump($matches[1]);