PHP Browser Detection
[resolved] [Feature Request] Please consider adding 'lte' support (2 posts)

  1. mgratch
    Posted 4 years ago #

    Please consider including the following function to your plugin, I don't think I would be the only person to find it useful to check for less than or equals to IE8. Plus it would help me so much not needing to add it after any future updates. :) Thanks for this plugin it certainly saved me time doing it myself as I was just about to embark on this process before stumbling across it. Great work!!!

    function is_lte_IE8 (){
    	$browserInfo = php_browser_info();
    	if(isset($browserInfo['browser']) && $browserInfo['browser']=='IE' && (int)$browserInfo['majorver'] <= 8)
    		return true;
    	return false;


  2. Mindshare Labs, Inc.
    Plugin Author

    Posted 3 years ago #

    This feature is available in the latest version (2.2) using the following syntax:

    if(is_ie() && get_browser_version() <= 8) {
      /* do stuff */

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • PHP Browser Detection
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic