Hi could anyone help me with this I have a URL like
parent/child/a=1&b=2$c=3
then I have a link that would add variable to that URL
Try with the below expression, It Should Work
preg_replace("#&d=.*&#", '&d=newvalue&', $_SERVER['REQUEST_URI'])