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

Reply via email to