如何使用自动使用PHP从XPath中提取的href属性下载文件?

I want to download a file from a href attribute that is extracted from the XPath using PHP

elements = FileOpen.aspx?Type=14&ID=2157&Inline=True

which is extracted from XPath. I want to download this file automatically in PHP

$elements  = $xpath->evaluate('string(//tr[@id ="ContentPlaceholder1_trMeetingDetail"]/td[@id="ContentPlaceholder1_tdMainContent"]/div[@id="ContentPlaceholder1_pnlDownloads"]/a[@id="ContentPlaceholder1_hlPublicAgendaFile"]/@href)');