Re: [PHP] Confused with constructors
Try this: class base_object() { function base_object() { echo "I'm the base"; } function base_test() { echo "I'm the base test"; } } class extended_object() extends base_object { function extended_object()
[PHP] Confused with constructors
I'm trying the example at: http://www.php.net/manual/en/language.oop.constructor.php \n"; } function B() { echo "I am a regular function named B in class A.\n"; echo "I am not a constructor in A.\n"; } } class B extends A { function C() { echo "I am a regul