note 19445 rejected from language.oop by alindeman
| From: | alindeman@php.net | Date: | Wed, 27 Feb 2002 21:58:45 +0000 |
| Subject: | note 19445 rejected from language.oop by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-27135@lists.php.net to get a copy of this message | ||
Does anybody know how a method can be called on a new object without storing the object into a
variable before?
something like this:
$output = (new ClassName($param))->method();
but NOT:
$output = ClassName::method();
Jan