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.
[Back to original message]
|