I have url like this :
/leads/set_attributes.html?lead_id=3793&name=TEST
I need remove 'name' and return url. I try do it like this:
$vars = [];
parse_str(html_entity_decode($sAddQuery), $vars);
unset($vars['name']);
$sAddQuery = http_build_query($vars);
But i always get
%3Flead_id=3793
as result. I tried use html_entity_decode for array elements but it did not help. How can i solve this? Thanks
$sAddQuery? The entire/leads/set_attributes.html?lead_id=3793&name=TESTpath or only the query string?html_entity_decodeis unnecessary here. Here's a related question.