assign_by_ref better than assign?
| From: | John W. Holmes | Date: | Sun, 10 Aug 2003 04:41:11 +0000 |
| Subject: | assign_by_ref better than assign? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-10020@lists.php.net to get a copy of this message | ||
Hi. I just noticed the assign_by_ref() method. I usually build up a large $input array that's passed to smarty to display everything with {$input.key}. Am I correct in assuming that things will be faster and less memory intensive by using assign_by_ref() instead of assign()? Are there any pitfalls I should be watching for by using assign_by_ref()?
Thanks.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
PHP|Architect: A magazine for PHP Professionals – www.phparch.com