Mobile_Detect::__construct
Construct an instance of this class.
Signature
public function __construct([array
$headers = NULL,
[string
$userAgent = NULL]] )
Parameters
$headers
— array- Specify the headers as injection. Should be PHP _SERVER flavored.
If left empty, will use the global _SERVER['HTTP_*'] vars instead. $userAgent
— string- Inject the User-Agent header. If null, will use HTTP_USER_AGENT
from the $headers array instead.