I have a url such as the example below
http://www.website.com/page.php?pid=263547322425&foo=too
How can i use regex to get the value of pid. Thats to say the value from the end of pid= until the &?
parse_str provides a neat way to do that:
$str = 'http://www.website.com/page.php?pid=263547322425&foo=too';
parse_str($str);
echo $pid;