Mecha CMS

Extract current URL data.

URL{::,->}hash()

Return the URL hash.

2.2.0static
URL::hash(void);
URL::hash(string $prefix = ');
$u_r_l->hash(void);
$u_r_l->hash(string $prefix = ');

Example:

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

Result:

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