Documentation

version

string|float public
\Bitrix\Conversion\Internals\MobileDetect::version(
 string $propertyName,
 string $type = self::VERSION_TYPE_STRING
);

Non-static method checks version for this parameter in User-Agent. Returns floating point number (for example, 2_0 will be returned as 2.0, 4.3.1 will be returned as 4.31).

Parameters

ParameterDescriptionVersion
$propertyNameParameter name. See. self::getProperties() array keys to get all parameters.
$typeТип:
  1. when value is self::VERSION_TYPE_STRING, returns a string value;
  2. when value is self::VERSION_TYPE_FLOAT, identifies a floating point number.

Parameter is optional and default value is self::VERSION_TYPE_STRING.



© «Bitrix24», 2001-2024
Up