accepts_charset($charset = 'utf-8')
Check if the current browser accepts a specific character set.
Static | Yes | ||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Returns | boolean | ||||||
Example |
|
The agent class allows you to retrieve information about browser type, version, platform or operating system, etc, based on the clients User Agent string.
Check if the current browser accepts a specific character set.
Static | Yes | ||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Returns | boolean | ||||||
Example |
|
Check if the current browser accepts a specific ISO language code.
Static | Yes | ||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Returns | boolean | ||||||
Example |
|
Returns the normalized browser name from the user agent string.
Static | Yes |
---|---|
Parameters | None |
Returns | string |
Example |
|
Returns the normalized platform name from the user agent string.
Static | Yes |
---|---|
Parameters | None |
Returns | string |
Example |
|
Returns the browser version.
Static | Yes |
---|---|
Parameters | None |
Returns | float |
Example |
|
Returns an array with all charactersets accepted by the browser.
Static | Yes |
---|---|
Parameters | None |
Returns | array |
Example |
|
Returns an array with all ISO languages accepted by the browser.
Static | Yes |
---|---|
Parameters | None |
Returns | array |
Example |
|
Returns an array with all properties of the detected browser.
Static | Yes |
---|---|
Parameters | None |
Returns | array |
Example |
|
Return a specific browser property. See properties() for the list of supported properties.
Static | Yes | ||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Returns | mixed | ||||||
Example |
|
Checks if the browser used is running on a mobile device.
Static | Yes |
---|---|
Parameters | None |
Returns | boolean |
Example |
|
Checks if the browser agent indicates the visitor is a robot or crawler.
Static | Yes |
---|---|
Parameters | None |
Returns | boolean |
Example |
|