- file_get_contents: documentation ( source)
- preg_match_all: documentation ( source)
- array_values: documentation ( source)
- sort: documentation ( source)
- array_unique: documentation ( source)
<?php
$file = file_get_contents("http://steamcommunity.com/sharedfiles/filedetails/?id=493980032");
$muster = '<a href="http:\/\/steamcommunity.com\/sharedfiles\/filedetails\/\?id=([0-9]+)">';
preg_match_all($muster, $file, $match);
$arr = array_unique(array_values($match[1]));
sort($arr);
foreach($arr as $val) {
print $val . "<br/>";
}
?>