![]() Join Up! 96822 members and counting! |
|
|||
php-documentation-list | 2003031
Date: 03/08/03
I'm not sure if it is the result it supposed to be, but on page:
http://www.php.net/manual/en/language.oop.constructor.php
The 4th example makes no difference when running under PHP3 and PHP4.
function B()
class B extends A
// This will call B() as a constructor.
D:\TEMP>\php3\php.exe class.php
I am a regular function named B in class A.<br>
D:\TEMP>\php4.3\php.exe class.php
I am a regular function named B in class A.<br>
D:\TEMP>\php5\php.exe class.php
I am the constructor of A.<br>
Is there something wrong here? Thanks!
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
|