Answers for "php detect mobile request"

PHP
1

php detect mobile request

function isMobileDevice() {
    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 April-19-2021

Browse Popular Code Answers by Language