Translate a URL into a PHP variable
<p>I have this link which i need to "translate" in a php variable.</p>

<p><a href="http://www.facebook.com/dialog/apprequests?app_id=346824075388300&amp;to=1149862205&amp;message=Facebook+Dialogs+are+so+easy%21&amp;redirect_uri=http%3A%2F%2Fpenelope-ns.net%2Ffb%2F" rel="nofollow">http://www.facebook.com/dialog/apprequests?app_id=346824075388300&amp;to=1149862205&amp;message=Facebook+Dialogs+are+so+easy%21&amp;redirect_uri=http%3A%2F%2Fpenelope-ns.net%2Ffb%2F</a></p>

<p>I need to translate it in something like this: </p>

<pre><code>$path = $protocol . '://facebook.com/dialog/apprequests?app_id=346824075388300&amp;to=/' . $fbid . '&amp;message=Facebook+Dialogs+are+so+easy%21&amp;redirect_uri=http%3A%2F%2Fpenelope-ns.net%2Ffb%2F';
</code></pre>

<p>Where instead of the value after I want to insert <code>$fbid</code> and i need also to make this a link, I mean all above is the link, I need to put it inside a href and put a word like, click here.</p>

<p>How can this be done?</p>
