PHP Classes

File: include/function/check.php

Recommend this page to a friend!
  Classes of Kakhaber Kashmadze   hiutils   include/function/check.php   Download  
File: include/function/check.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: hiutils
Utility functions to process request data
Author: By
Last change: Update of include/function/check.php
Date: 1 year ago
Size: 402 bytes
 

Contents

Class file image Download
<?php
/*
  Created by Kakhaber Kashmadze
  @version 0.1
  @license MIT
*/

function isMobile(){
   
$userAgent=null;
   
    if(isset(
$_SERVER) && isset($_SERVER['HTTP_USER_AGENT'])){
       
$userAgent=trim(strtolower($_SERVER['HTTP_USER_AGENT']));
       
        if(
strstr($userAgent, 'android') || strstr($userAgent, 'iphone')){
            return
true;
        }
    }
   
    return
false;
}