Mecha CMS

$u_r_l->hash()

Return the URL hash if any, otherwise return null.

2.2.0

$u_r_l->hash(void);
$u_r_l->hash(string $join = '#');

Example:

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

$A = $url->hash;
$B = $url->hash();
$C = $url->hash('#!');

Result:

$A = '#baz';
$B = '#baz';
$C = '#!baz';