assign_by_ref() and append_by_ref()
| From: | Monte Ohrt | Date: | Fri, 02 Aug 2002 18:22:15 +0000 |
| Subject: | assign_by_ref() and append_by_ref() | ||
| Groups: | php.smarty.dev php.smarty.general | ||
| Request: | Send a blank email to php-smarty-dev+get-233@lists.php.net to get a copy of this message | ||
These two functions have been committed to CVS. Please try them and see how they work, or if they were done right.
$smarty->assign_by_ref('foo',$my_array);
The first parameter is not optional, it must have a value. The second paramater gets passed by reference so it must be a variable, not a literal.
$smarty->append_by_ref('foo', $my_array);
Same goes for this one. I'm not sure if append_by_ref is correct because benchmarks don't show anything different, but it seems to work OK.
Monte