new keyword combined with other things.
Posted: Mon Dec 06, 2010 10:30 am
how can this be write:
$result = new Object() -> method();
I've tried with parenthesis around new but nothing.
I know a static function can be defined and the above statement can transform into
$result = Object::getNewInstance() -> method()
but is there any way to write it directly? and if not, why isn't this implemented yet?
$result = new Object() -> method();
I've tried with parenthesis around new but nothing.
I know a static function can be defined and the above statement can transform into
$result = Object::getNewInstance() -> method()
but is there any way to write it directly? and if not, why isn't this implemented yet?