Code Snippets Php

$useragent = getenv("HTTP_USER_AGENT");
if (preg_match("/MSIE/i", "$useragent"))
{
$result = "Internet Explorer.";
}
else if (preg_match("/Mozilla/i", "$useragent"))
{
$result = "Mozilla";
}
else
{
$result = "You are using $useragent";
}
?>


Browser Match Results


$result

"; ?>