break up a string



$refering_str = http://www.somesearchsite.com/search?q=foo+bar;

just want the contents of q can anyone help please?


.