How to find id of html element using php : <p>This is not a duplicated question. I have a html tag that has id.
I want to find value of id using php. How to do that? Is it possible?
For example:</p>

<pre><code>&lt;p id="par"&gt;&lt;?php /* find value of id */ ?&gt;&lt;/p&gt;
</code></pre>

<p>I want to find "par" using php.
Please answer exactly, for example some people say use html-dom but they don't know how. </p>
