-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Description
It is often necessary to update just one parameter in a query, for example:
$url = new Url($link);
$params = $url->queryArray();
$params['foo'] = 'bar';
$url->queryArray($params);
It would be great to do this in one call:
$url = new Url($link);
$url->queryParam('foo', 'bar');
And also the getter:
$url = new Url($link);
$url->queryParam('foo', 'bar');
And also for removal:
$url = new Url($link);
$url->queryParam('foo', null);
// or
$url->removeQueryParam('foo');
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels