PHP Code Funtion to Get URL Protocol, Even if on Cloudflare

PHP Code Funtion to Get URL Protocol (http:// or https://), Even if your Web Pages on Cloudflare

Home Short:

Function to return the correct url protocol for your web server, http or https.

To use: $urlprotocol = urlProtocol();

S
H
A
R
E