RE: [PHP] Inheritance Question

2002-10-08 Thread Martin Towell
, then either way would be okay... but I'd use $this->jk() anyway, just to keep it all in the object (just in case...) Martin -Original Message- From: Jarrad Kabral [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 09, 2002 11:18 AM To: [EMAIL PROTECTED] Subject: [PHP] Inheritan

[PHP] Inheritance Question

2002-10-08 Thread Jarrad Kabral
Hi all, Was just wondering which is the better way to call an inherited method from a child class? Example: class foo { function jk() { echo "In here!"; } } class bar extends foo { function do_something() { //Either this one... $this->jk(); //Or thi