Search
 
SCRIPT & CODE EXAMPLE
 

PHP

check if user is on mobile php

function isMobile() {
    return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up.browser|up.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]);
}
Comment

PREVIOUS NEXT
Code Example
Php :: wordpress turn off php warnings 
Php :: js redirect in php 
Php :: php get current domain 
Php :: how to migrate single table in laravel 
Php :: php pdo last insert id 
Php :: php turn off warnings and notices 
Php :: laravel 8 password confirmation validation 
Php :: wordpress get_date 
Php :: laravel artisan create criteria 
Php :: numbric validate laravel 
Php :: php check method of http request 
Php :: php remove extension from url 
Php :: redirect http to https htaccess 
Php :: show all terms of a custom taxonomy 
Php :: laravel route group middleware prefix 
Php :: php check how much time each instruction takes to complete 
Php :: CLI to create a new laravel project 
Php :: php string to int 
Php :: laravel carbon time format AM PM 
Php :: get term thumbnail 
Php :: php memory_limit unlimited 
Php :: laravel get file name 
Php :: php dom add class to element 
Php :: confirm before submit form php 
Php :: php array index exists 
Php :: php delete session 
Php :: laravel old request hmtl select 
Php :: php remove nbsp from string 
Php :: php uppercase each word 
Php :: disable foreign key laravel 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =