Mobile Browser Check IF Statement
问题 I am attempting to have my PHP script detect whether the user is on a mobile browser and if not display a weather box script. If a mobile browser has been detected, it is to display nothing. For some reason the IF statement does not appear to be working and I am wondering if someone here can assist me in figuring out why? <?php $useragent=$_SERVER['HTTP_USER_AGENT']; if(preg_match('/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)