R3m/framework Function reference server

{server(String $key=null)}

Return a server variable.

$_SERVER is an array containing information such as headers, paths, and script locations.
The entries in this array are created by the web server.
There is no guarantee that every web server will provide any of these; servers may omit some, or provide others not listed here.
That said, many of these variables are accounted for in the ยป CGI/1.1 specification, so you should be able to expect those.

Returns server array when key is null or a value when key is filled.

More information:


Last modified: 2021-06-07

© 2021 universeorange.com