The following code echo's (outputs) "some value" to the screen. I don't get it. Why does it output anything at all since I don't call the show() method at all? <?php class some { static $value = "some value"; function __construct() { $this->value = "another value"; } function getStyle() { return $this->value; } } class webPage extends some { public function show() { echo parent::$value."<br>"; } } $page = new webPage(); //$page->show(); ?> Code (markup): What I am trying to do is access properties (variables) of the some class inside the webPage class in such a way that I can readily identify them as coming from a parent class on a cursory look through the code inside the webPage class. I would like the code to run at least several versions back from 5.3.0 if possible. I thought using the parent:: operator might do it but as you can see it's acting very strange. Anybody got any ideas or suggestions? Thanks. Carlos
sounds like that change to comment out show didn't get uploaded to your server correctly - still using the version you had prior to you making that change
Thanks so much for getting back to me. It was my fault entirely! As a result of staring at PHP code all day without hardly taking a break I had accidentally been running the code from another similarly named file to the code above. I kept changing the code above and couldn't for the life of me figure out how it was producing any output at all LOL. Quite silly but it's happened before. Thanks again. Carlos