get all <meta property > using php
<p>How do I extract the "content" values of a  from the view source</p>

<p>I have used CURL to get the source of the page but after that I'm not able to identify the following:</p>

<pre><code>&lt;meta property="og:title" content="Zoe&amp;#39;s big surprise"&gt;
&lt;meta property="og:description" content=" "&gt;
&lt;meta property="og:type" content="video"&gt;
&lt;meta property="og:image" content="http://i1.ytimg.com/vi/PNyMlswZb-I/hqdefault.jpg"&gt;
</code></pre>

<p>basically I need to capture all the above parameters in an array and use them.
I have tried the following after curl</p>

<pre><code>    //parsing begins here:
    $doc = new DOMDocument();
    @$doc-&gt;loadHTML($data);
    $nodes = $doc-&gt;getElementsByTagName('title');

    //get and display what you need:
    $title = $nodes-&gt;item(0)-&gt;nodeValue;

    $metas = $doc-&gt;getElementsByTagName('meta'); --This line is not able to fetch any &lt;meta&gt; content&gt;
</code></pre>

<p>Thanks</p>
