TwistPHP Documentation

detect

File path: dist/twist/Core/Models/UserAgent.model.php
Namespace: Twist\Core\Models
Extends:

detectDetect the Device Type, OS Name, Name/Version and the Browser Name based on a user agent string that is either passed in or detected from the server headers

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 detect with the example vars
\Twist\Core\Models\UserAgent::detect($strUserAgent);