Mecha CMS

$u_r_l->protocol()

Return the URL protocol if any, otherwise return null.

2.2.0

$u_r_l->protocol(void);

Example:

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

$A = $url->protocol;

Result:

$A = 'http://';