Variables containing variables?
| From: | Lance Lovette | Date: | Thu, 25 Jul 2002 04:17:44 +0000 |
| Subject: | Variables containing variables? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-5438@lists.php.net to get a copy of this message | ||
Does Smarty have a way to handle the case where a variable contains a
variable?
For example:
{$a} = "{$b}, old pal";
{$b} = "Bob";
Hello {$a}
OUTPUT:
Hello Bob, old pal
INSTEAD OF:
Hello {$b}, old pal
Right now I have to make two passes through the template. Ideally I'd like
to have any number of levels and let Smarty deal with it.
Thanks!
Lance