Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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"]);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #user #mobile #php
ADD COMMENT
Topic
Name
1+6 =