TwistPHP Documentation

getOSVersion

File path: dist/twist/Core/Utilities/Device.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

getOSVersionGet the OS Name/Version of a device by it's User Agent string.

Parameters

Name Type Description
[$strUserAgent = null]stringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strUserAgent null;

//Call the function getOSVersion with the example vars
Twist::Device() -> getOSVersion($strUserAgent);