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

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

WBOY
Release: 2016-06-13 11:40:19
Original
1309 people have browsed it

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

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

endif; ?>

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

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template