You are here: Re: Three different ways to create a new Smarty object? « PHP Programming Language « IT news, forums, messages
Re: Three different ways to create a new Smarty object?

Posted by Chung Leong on 05/19/06 16:50

William Krick wrote:
> I'm using Smarty templates with PEAR HTML_QuickForm on a server running
> PHP 4.4.1.
>
> This Smarty tutorial uses =&...
>
> http://www.midnighthax.com/smarty-guide.php
>
> ...most other examples I've seen use = and I just want to make sure
> that I'm doing the right thing.

It's redundant. = and =& do the same thing. The author does it either
because he doesn't understand PHP's copy-on-write mechanism or he
trying to be consistent between PHP 4 and PHP 5, where objects are
always assigned by reference.

 

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

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