note 5597 modified in function.get-browser by irc-html

From: Date: Mon, 21 Jan 2002 05:34:17 +0000
Subject: note 5597 modified in function.get-browser by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-25604@lists.php.net to get a copy of this message
the example is great if you just want to spit out all that stuff, but i highly doubt anybody really wants to do that. To use the get_browser object in a conditional statement, do something like this: $ua = get_browser (); if ( ( $ua->browser == "Netscape" ) && ( $ua->version < 5 ) ) { // code to fix the page for netscape :) } --was-- the example is great if you just want to spit out all that stuff, but i highly doubt anybody really wants to do that. To use the get_browser object in a conditional statement, do something like this: <PRE>; $ua = get_browser (); if ( ( $ua->browser == "Netscape" ) && ( $ua->version < 5 ) ) { // code to fix the page for netscape :) } </PRE> http://www.php.net/manual/en/function.get-browser.php

« previous php.notes (#25604) next »