Skip to content

Instantly share code, notes, and snippets.

@loo2k
Created October 10, 2014 08:15
Show Gist options
  • Save loo2k/d7a3a3ba16c6f0832236 to your computer and use it in GitHub Desktop.
Save loo2k/d7a3a3ba16c6f0832236 to your computer and use it in GitHub Desktop.
PHP 判断是否微信内置浏览器
<?php
if( !preg_match('/micromessenger/i', strtolower($_SERVER['HTTP_USER_AGENT'])) ) {
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment