Mecha CMS

$u_r_l->offsetUnset()

Remove URL property.

2.2.0 \ArrayAccess

$u_r_l->offsetUnset($key);

Example:

$url = new URL('https://mecha-cms.com/foo/bar#qux');

unset($url['path']);

echo $url->current;

Result:

https://mecha-cms.com#qux