Exploding a string
<p>What I am trying to achieve is to explode a string into an array as follows:</p>

<pre><code>$arr = explode('&lt;some_tag&gt;&lt;/some_tag&gt;', $str);
</code></pre>

<p>But I want to explode it even if there might be something between the tags: </p>

<pre><code>$str = '&lt;some_tag&gt;text&lt;some_tag&gt;');
</code></pre>

<p>Could you please suggest how to settle down the problem?</p>
