How to extract text between 2 tags in php
<p>I need to locate 2 tags in a lump of text and keep whatever text is between them.</p>

<p>For example if the "Begin" tag was <code>-----start-----</code> and the "End" tag was <code>-----end-----</code></p>

<p>Given this text:</p>

<pre><code>rtyfbytgyuibg-----start-----isnv4b987b6vdc5y6ughnjmn9b8v76ctyubinn98b76r
-----end-----gcgkhjkn
</code></pre>

<p>I need keep just the text between the 2 tags: <code>isnv4b987b6vdc5y6ughnjmn9b8v76ctyubinn98b76r</code></p>

<p>Any ideas? Thank you.</p>
