Web Development || Node JS, Angular, PHP
Pages
Home
About Us
Prtfolio
Motivational Quotes
Useful Links
Thursday, February 28, 2019
Check Mobile Version in 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"]);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment