Okay, so I can't do this?
How can I do this in one line?PHP Code:<?php
class A { public function A() {} public function B() {} }
new A()->B();
?>
Also, what the difference between using __construct, and a function which has the same name as the class?




Reply With Quote