Mecha CMS

$u_r_l->clean()

Return current URL without page offset, query string and hash.

2.2.0

$u_r_l->clean(void);

Example:

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

echo $url->clean;

Result:

https://mecha-cms.com/foo/bar