TwistPHP Documentation

getBrowser

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

getBrowserGet Browser details from a browser key, these are the keys found in the browsers.json file

Parameters

Name Type Description
$strBrowserKeystringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$strBrowserKey 'foo';

//Call the function getBrowser with the example vars
\Twist\Core\Models\UserAgent::getBrowser($strBrowserKey);