SproutCMS

This is the code documentation for the SproutCMS project

function withoutArgs()

Removes one or more argumens from the current URL, returning a URL which can have arguments appended to it
Multiple arguments can be specified

If the current URL is:
    /search?q=test&category=general
and the function call is:
    Url::withoutArgs('q')
the resulting URL will be:
    /search?category=general&

Use rtrim($url, '&?') if you do not desire the trailing ? or &

Usage

unknown Url::withoutArgs ( );