Posted By

cerxx on 10/03/19


Tagged

php-hacks


Versions (?)

How to define IE browser using PHP


 / Published in: PHP
 

URL: https://itcode.org/ru/teaching/51-detect-ie11

How to define IE browser using PHP

  1. if( strpos($_SERVER['HTTP_USER_AGENT'],'MSIE')!==false ||
  2. strpos($_SERVER['HTTP_USER_AGENT'],'rv:11.0')!==false){
  3. echo "it browser internet explorer";
  4. }else{
  5. echo "this is not internet explorer";
  6. }

Report this snippet  

You need to login to post a comment.