user_agent([$xss_clean = NULL])
| Returns: |
User agent string or NULL if not set |
|---|---|
| Parameters: |
|
| Return type: |
mixed |
Returns the user agent string (web browser) being used by the current user, or NULL if itβs not available.
echo $this->input->user_agent();
See the User Agent Class for methods which extract information from the user agent string.
Please login to continue.