Свойство | Тип | Описание | |
---|---|---|---|
$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" |
Метод | Описание | |
---|---|---|
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 | ||
Результат | string |
public static bool $ios | ||
Результат | boolean |
public static bool $iphone | ||
Результат | boolean |
public static bool $mobile | ||
Результат | boolean |
public static string $name | ||
Результат | string |
public static string $platform | ||
Результат | string |
public static string $ua | ||
Результат | string |
public static string $version | ||
Результат | string |