This post originated from an RSS feed registered with PHP Buzz
by Michael Kimsal.
Original Post: PHP PPP question
Feed Title: Michael Kimsal's weblog
Feed URL: http://michaelkimsal.com/blog/category/php/feed/
Feed Description: Web development and new media observations
Why does this work? Why does this show the email address?
#1<?phpclass person { private $email = “foo”; function showEmail() { echo $this->email; }}class user extends person {}$u = new user();$u->showEmail();
but this doesn’t?
#2<?phpclass person { private $email = “foo”;}class user extends person { function showEmail() { echo $this->email; }}$u = new user();$u->showEmail();
Also, [...]