Mecha CMS

$u_r_l->i()

Return the URL page offset if any, otherwise return null.

2.2.0

$u_r_l->i(void);
$u_r_l->i(string $join = '/');
$u_r_l->i(string $join = '/', int $skip = 0);

Example:

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

$A = $url->i;
$B = $url->i();
$C = $url->i('#');
$D = $url->i('#', 4);

Result:

$A = '/1';
$B = '/1';
$C = '#1';
$D = '#5';