Mecha CMS

$u_r_l->ground()

Return the base URL, otherwise return null.

2.2.0

$u_r_l->ground(void);

Example:

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

echo $url->ground;

Result:

https://mecha-cms.com