Property | Type | Description | |
---|---|---|---|
$engine | string | The readable browser engine name For example: "webkit" | |
$ios | boolean | True or false if it is an iOS device or not | |
$iphone | boolean | True or false if it is an iPhone or not | |
$mobile | boolean | True or false if it is a mobile device or not | |
$name | string | The readable name of the browser For example: "ie" | |
$platform | string | The platform name For example: "mac" | |
$ua | string | The entire user agent string | |
$version | string | The browser version number For example: "3.6" |
Method | Description | |
---|---|---|
css ( string $ua = null, boolean $array = false ) : mixed | Returns a browser-specific css selector string | |
detect ( string $ua = null ) : array | The core detection method, which parses the user agent string | |
engine ( string $ua = null ) : string | Returns the browser engine | |
ios ( string $ua = null ) : boolean | Checks if the user agent string is from an iOS device | |
iphone ( string $ua = null ) : boolean | Checks if the user agent string is from an iPhone | |
mobile ( string $ua = null ) : boolean | Checks if the user agent string is from a mobile device | |
name ( string $ua = null ) : string | Returns the name of the browser | |
platform ( string $ua = null ) : string | Returns the platform | |
version ( string $ua = null ) : string | Returns the browser version |
public static string $engine | ||
return | string |
public static bool $ios | ||
return | boolean |
public static bool $iphone | ||
return | boolean |
public static bool $mobile | ||
return | boolean |
public static string $name | ||
return | string |
public static string $platform | ||
return | string |
public static string $ua | ||
return | string |
public static string $version | ||
return | string |