|
Posted by ZeldorBlat on 10/01/07 13:47
On Oct 1, 9:37 am, Mtr <M...@no.spam> wrote:
> this results in "unexpected T_OBJECT_OPERATOR" Parse error
>
> How do I do this, without needing two lines such as
>
> $o = new Object();
> $o->function();
>
> Also, what does "unexpected T_OBJECT_OPERATOR" mean?
You don't. That syntax (new Object()->function()) isn't supported.
That's why you get "unexpected T_OBJECT_OPERATOR."
Navigation:
[Reply to this message]
|