Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php if mobile

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 :: laravel 6 get user id 
Php :: replace 0 in number to add 234 php 
Php :: livewire inline component 
Php :: laravel read file from tmp 
Php :: how to execute cmd command in php 
Php :: unlink is a directory laravel 
Php :: php upload file 
Php :: wp_get_attachment alt text 
Php :: laravel routes resource 
Php :: php check for null 
Php :: stripslashes in php 
Php :: php variable in string 
Php :: transform text to lowercase and replace space with dash php 
Php :: format seconds to human readable carbon 
Php :: php implode array 
Php :: trim array in map php 
Php :: php artisan down allow ip 
Php :: tinyinteger laravel +size 
Php :: Unable to create PsySH runtime directory. Make sure PHP is able to write to /run/user in order to continue. 
Php :: php date function get previous month 
Php :: php calculate hours and minutes between two times 
Php :: how to assign value of a js variable to a php variable 
Php :: laravel server sent events 
Php :: send data from php to python 
Php :: carbon subdays 
Php :: IlluminateContractsContainerBindingResolutionException target calss does not exist 
Php :: remove empty array elements php 
Php :: PHP is_array() Function 
Php :: sum of multidimensional array in php 
Php :: command to create model with migration in laravel 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =