Uncategorized

Uncategorized

No posts to display

HOT TUTORIALS

PHP, JS: How to detect Safari browser

How to detect Safari browser
PHP /** * Copyright: www.tutorialspots.com **/ function isSafari($ua) { return preg_match("/^((?!chrome).)*safari/i",$ua) && stripos($ua,' version/')!==false && stripos($ua,'mqqbrowser')===false; } Example: $uas = array( 'Mozilla/5.0...