I am trying to parse url and extract value from it .My url value is www.mysite.com/register/?referredby=admin. I want to get value admin from this url.
www.mysite.com/register/?referredby=admin
admin
$referred = "referredby=admin"; $pieces = explode("=", $referred); echo $pieces[1]; // admin