Simple variable/array/assign-problem? Associative array using a variable to point
| From: | Johannes Schill | Date: | Thu, 17 Oct 2002 13:28:44 +0000 |
| Subject: | Simple variable/array/assign-problem? Associative array using a variable to point | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6185@lists.php.net to get a copy of this message | ||
Hello again,
My problem this time:
This works:
{assign var="tmp" value=$silverData[258]}
But this doesnt work:
{assign var="offer_id" value=258}
{assign var="tmp" value=$silverData[$offer_id]}
I need to dynamically (using an variable, $offer_id), point to a post in an
array ($silverData). Is there a workaround?
Best regards,
Johannes Schill