|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-10-20 09:38 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 31 23:00:01 2025 UTC |
In most of the languages child classes can inherit from more than one parent classes (C++, Java). In PHP it is not impossible at the moment, as far as I know. A proposed syntax would be (as in other languages): class childClass extends parClass1, parClass2 { } Obviously, a number of questions may occur, for example, constructors cannot be called automatically in this case, so I suppose this is not a trivial problem.