You are here: Referencing returned objects directly « PHP Programming Language « IT news, forums, messages
Referencing returned objects directly

Posted by lister on 03/19/07 14:59

Hi all,

Is it possible to directly reference an object that is returned by a
function in PHP?

ie this:
echo ReturnAnObject()->SomeMember;

instead of this:
var $Object = ReturnAnObject();
echo $Object->SomeMember;

'cus I can't work out the syntax if it is. :-(

Cheers,
Lister

 

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

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