TwistPHP Documentation

getOS

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

getOSGet the OS Name 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 getOS with the example vars
Twist::Device() -> getOS($strUserAgent);