Extract number from variable
<p>I have this string:</p>

<pre><code>$guid = 'http://www.test.com/?p=34';
</code></pre>

<p>How can I extract the value of get var <code>p</code> (34) from the string and have <code>$guid2 = '34'</code>?</p>
