Can I generate an array based on url path?
<p>I have a path like:</p>

<p>/blog/2/post/45/comment/24</p>

<p>Can I have an array depends on what I have on url, like :</p>

<pre><code>$arr = array('blog'=&gt;'2','post'=&gt;'45','comment'=&gt;'24');
</code></pre>

<p>But it should depend on variable passed:</p>

<pre><code>/blog/2 should produce $arr = array('blog'=&gt;'2');
</code></pre>

<p>Is this possible to create dynamic array?</p>
