Is user using the Miscrosoft Internet Explorer : Client Info « Development « PHP
- PHP
- Development
- Client Info
Is user using the Miscrosoft Internet Explorer
<?
$agent = getenv("HTTP_USER_AGENT");
echo($agent);
if (preg_match("/MSIE/i", $agent)) {
$result = "You are using Microsoft Internet Explorer.";
}else {
$result = "You are using $agent";
}
?>
Related examples in the same category