<code><span><span><?php</span><span>if</span>(stristr(<span>$_SERVER</span>[<span>'HTTP_USER_AGENT'</span>],<span>'Android'</span>)) { <span>echo</span><span>'你的手机是:Android系统'</span>; }<span>else</span><span>if</span>(stristr(<span>$_SERVER</span>[<span>'HTTP_USER_AGENT'</span>],<span>'iPhone'</span>)){ <span>echo</span><span>'你的手机是:ISO系统'</span>; }<span>else</span>{ <span>echo</span><span>'你使用的是其他系统'</span>; } <span>?></span></span></code>
The above introduces PHP to identify Android and iOS, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.