examancer wrote:
You could test the theory pretty easily though... I would if I wasn't at work...
me as well, but i meant:
class Foo
{
function Foo()
{
echo 'constructor foo<br />';
}
}
class Bar extends Foo
{
}
$foo=new Foo();
does that output or not???
(it does)
BTW:
1)does this "magic "-thing work faster than the "traditional" constructor with the name of the class in it?
2) what if i call parent::Foo() in Bar and i named that thing constructor???