Match just the spelling and not letter case in getAttribute() - PHP
<p>I have a long html and I use the php's DOMElement to parse it like this -:<br />
<code>$contents</code> is the variable having the html</p>

<pre><code>$doc = new DOMDocument(); @$doc-&gt;loadHTML($contents);
$metas = $doc-&gt;getElementsByTagName('meta');
</code></pre>

<p><code>$metas</code> will be true only if in the html the meta tag is written like this -:</p>

<pre><code>&lt;meta&gt;&lt;/meta&gt;
</code></pre>

<p>But if they are written in <code>uppercase</code> or a <code>combination of upper and lowercase</code>, it returns false</p>

<p>How to go about it</p>
