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

SQL/PHP: Table design question -

NHibernate Passing Session to the Repository -

asp.net - How do I pass login ID as parameter to SharePoint login page? -