1. 程式人生 > >當前是否為微信訪問

當前是否為微信訪問

pan ESS rom nbsp style bsp == lse ger

1 function isWeixin() {
2     if (strpos($_SERVER[‘HTTP_USER_AGENT‘], ‘MicroMessenger‘) !== false) {
3         return true;
4     }
5     return false;
6 }

當前是否為微信訪問