Nid*_*eph 4

$content=file_get_contents($url);
if (preg_match("/<img.*src=\"(.*)\".*class=\".*pinit\".*>/", $content, $matches)) 
{
echo "Match was found <br />";
echo $matches[0];
}
Run Code Online (Sandbox Code Playgroud)

$matches[0] 将打印整个图像标签。如果你只想提取 URL,那么你可以使用 $matches[1] 来获取相同的:)