Mecha CMS

$u_r_l->current()

Return current URL including the page offset, query string and hash.

2.2.0

$u_r_l->current(void);

Example:

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

echo $url->current;

Result:

https://mecha-cms.com/foo/bar/1?baz=qux#boo