- file_get_contents: documentation ( source)
- preg_match: documentation ( source)
<?php
$myURL = 'http://www.economist.com/news/finance-and-economics/21588124-events-america-show-no-asset-copper-bottomed-where-theres-money-theres';
if (preg_match('/<meta property="og:title" content="(.+)"/', file_get_contents($myURL),$matches) && isset($matches[1]) ) {
echo $matches[1];
}