Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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"]);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #mobile
ADD COMMENT
Topic
Name
2+3 =