Php: Select part of a url

Associate
Joined
5 Feb 2006
Posts
129
Location
Birmingham
Hi i have a script that extracts a url from a website by matching a pattern i now want to extract infomation from the url:

http://site.com/qaz/qaz?=qwerty

I basically want to capture the word after the =

so in this case qwerty

I have not a clue how to do this could anyone tell me what i should be looking at.

Thanks
 
robmiller i couldn't get it to work so i run the exact code you posted, it dosent find the foo=bar result only the baz=lol do you know why?

Cheers
 
Back
Top Bottom