Assistance Parsing Multiple links using DOM

I have this code which parses out a div from within the page gotten. Works great.

$html = file_get_dom('http://steamcommunity.com/profiles/76561198010758659/games?tab=all'); echo $html('div#game_440 h5', 0)->getPlainText();

but I need the code to parse from multiple links, instead of using one link like it does now. I would like these multiple links to be called from a text file.

How would I go about this? I know about the file() function. but I have no idea how to use it. The examples are all wrong

Sponsor our Newsletter | Privacy Policy | Terms of Service