Php5 extending classes and access private variables.

    Date: 04/24/07 (PHP Development)    Keywords: no keywords

    I have a classs.

    
    
    ';
            var_dump($this->varName);
            print '
    '; } } ?>

    Why don't I get access to $varName from the parent object? I am extending a class I should have access to all private variables because it's an extension of the class. If I make it public it works fine....

    Source: http://php-dev.livejournal.com/76569.html

« phpAPP: Include file to... || Writing a SOAP server »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home