The code below also works if you omit the declaration of the $userAgent, will it be any difference?
/Jos� J
class Browser
{
# the line below is not necessary?
var $userAgent;
function Browser()
{
$this->userAgent = $GLOBALS["HTTP_USER_AGENT"];
}
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

