Home >php教程 >php手册 >PHP实现只在IE浏览器显示广告简单代码

PHP实现只在IE浏览器显示广告简单代码

WBOY
WBOYOriginal
2016-06-13 11:40:191310browse

PHP实现只在IE浏览器显示广告简单代码,看下边的代码就知道了,真的很简单,这里使用了PHP的IF语句,并且使用了short_tags,服务器必须支持才可以哦。

if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false): ?>

endif; ?>

相关阅读:PHP中文参考手册

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn