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://community.livejournal.com/php_dev/76569.html

« How I earn up to $4500,... || 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