Well its going to execute from the class in which you created the object thats how OOP works.
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Bob) wrote: > the manual says:the function A will be called. > in fact, the function B is called. > why? > my config : win98/pws2/php411(CGI) > > <?php > class A > { > function A() > { > echo "I am the constructor of A.<br>\n"; > } > > function B() > { > echo "I am a regular function named B in class A.<br>\n"; > echo "I am not a constructor in A.<br>\n"; > } > } > > class B extends A > { > function C() > { > echo "I am a regular function.<br>\n"; > } > } > > // This will call B() as a constructor. > $b = new B; > ?> > > thaks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php