How can I replace a certain part of a string. For example we have the URL:
username=[LINK]&quantity=10&limit=[POSTS]&interval=5&url=https://google.com/&service=762&runs=[RUNS]&type=Comments
I want to keep the parameters, quantity=\, limit=, interval=* & runs=*.
I've tried to do it with parsing but can't get it work,
 parse_str($p_api, $query);                                   
 $quantity = '&quantity='.$query['quantity'];
 $limit = '&limit='.$query['limit'];
 $interval = '&interval='.$query['interval'];
 $runs = '&runs='.$query['runs'];
How can I update all other data but keep these parameters as they are in the default string?