server($index[, $xss_clean = NULL])
Parameters: |
|
---|---|
Returns: |
$_SERVER item value if found, NULL if not |
Return type: |
mixed |
This method is identical to the post()
, get()
and cookie()
methods, only it fetches server data ($_SERVER
):
1 | $this ->input->server( 'some_data' ); |
To return an array of multiple $_SERVER
values, pass all the required keys as an array.
1 | $this ->input->server( array ( 'SERVER_PROTOCOL' , 'REQUEST_URI' )); |
Please login to continue.