Re: function call chaining

From: Date: Tue, 19 Jan 2010 10:47:27 +0000
Subject: Re: function call chaining
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-46796@lists.php.net to get a copy of this message
Alexey Zakhlestin wrote: > Would be nice if something like this worked too: > (new Class())->method(); If you *really* want to do this you can use a factory method: Class::create()->method(); - Chris

« previous php.internals (#46796) next »