internet explorer - PHP get_browser: how to identify ie7 versus ie6? -


Is IE7 vs IE6 a way to use PHP's get_browser () function?

You can do this:

  $ browser = get_browser ( ); If ($ Browser-> Browser == 'IE' & amp; amp; amp; amp; Browser- & gt; majorver == 6) {Echo "IE6"; } Otherwise ($ Browser-> Browser == 'IE' & amp; amp; Browser- & gt; majorver == 7) {Echo "IE7"; }  

Your question will be answered if you look at the official documentation quickly. Always read the first document.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -