You are here: Re: new Object()->function() ? « PHP Programming Language « IT news, forums, messages
Re: new Object()->function() ?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация