Home > Article > Backend Development > PHP implements simple code to only display advertisements in IE browser_PHP tutorial
PHP implements a simple code that only displays advertisements in IE browsers. Just look at the code below. It is really simple. The IF statement of PHP is used here, and short_tags is used. The server must support it. .
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false): ?>