PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Zhao  >  PHP Mobile Device Detection  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: demo for device detector
Class: PHP Mobile Device Detection
Detect mobile devices from request headers
Author: By
Last change: It demos how to detect the device of client.
Date: 7 years ago
Size: 162 bytes
 

Contents

Class file image Download
<?php

use rbib\util\http\DeviceDetector;

include
'rbib/util/http/DeviceDetector.php';

$mobile = DeviceDetector::isMobileDevice();

var_dump($mobile);

For more information send a message to info at phpclasses dot org.