<?php
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE) {
?>
<h3>strpos() must have returned non-false</h3>
<p>You are using Internet Explorer</p>
<?php
} else {
?>
<h3>strpos() must have returned false</h3>
<p>You are not using Internet Explorer</p>
<?php
}
?>
Warning: Undefined array key "HTTP_USER_AGENT" in /in/7O3R1 on line 2
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /in/7O3R1 on line 2
<h3>strpos() must have returned false</h3>
<p>You are not using Internet Explorer</p>
Output for 8.0.0 - 8.0.30
Warning: Undefined array key "HTTP_USER_AGENT" in /in/7O3R1 on line 2
<h3>strpos() must have returned false</h3>
<p>You are not using Internet Explorer</p>