TwistPHP Documentation

getDevice

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

getDeviceGet the Type 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 getDevice with the example vars
Twist::Device() -> getDevice($strUserAgent);