Answers for "how to tell if you're on mobile php email"

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 "how to tell if you're on mobile php email"

Browse Popular Code Answers by Language