Skip to content

Instantly share code, notes, and snippets.

@liunian
Created November 5, 2012 08:16
Show Gist options
  • Save liunian/4015978 to your computer and use it in GitHub Desktop.
Save liunian/4015978 to your computer and use it in GitHub Desktop.
detect whether the client is ie6 or not
function isIE6() {
return strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.0');
}
# ie6's UA example
# Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 6.1; QQDownload 731; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment