You are here: Some quick PHP questions « PHP Programming Language « IT news, forums, messages
Some quick PHP questions

Posted by Phil Latio on 03/07/07 00:43

Firstly, is the following code allowed assuming the addContent function
expects as single argument?
$page->addContent($form = new Form());

Secondly, I've been reading a tutorial and noticed the use of an "&" in
front of the word "new" when instantiating a new object. See example below,
I just wondered what is it's significance? The code was purely a snippet.
$textField1 = &new inputTextObject("blah", "blah", "blah");

Cheers

Phil

 

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

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