note 5597 deleted from function.get-browser by felipe
| From: | felipe@php.net | Date: | Sun, 20 Jul 2008 23:44:09 +0000 |
| Subject: | note 5597 deleted from function.get-browser by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-142362@lists.php.net to get a copy of this message | ||
Note Submitter: andysmith at post dot com
----
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 :)
}