note 5661 deleted from Predefined variables by ronabop
| From: | ronabop@php.net | Date: | Fri, 11 Aug 2000 15:54:29 +0000 |
| Subject: | note 5661 deleted from Predefined variables by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-1219@lists.php.net to get a copy of this message | ||
well... not 2 minutes after my previous post I figured out how to do it. My apologies for asking
such a simple question. For anyone else having trouble with this, you need to globalize variables
within the function like this:
function GetBrowserName($UserAgent){
global $HTTP_USER_AGENT;
echo( $HTTP_USER_AGENT);
}