Answers for "getting to know about the request from mobile in php"

PHP
5

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"]);
}
Posted by: Guest on November-05-2020

Code answers related to "getting to know about the request from mobile in php"

Browse Popular Code Answers by Language