Dereferencing associative arrays?
| From: | Michal Prinke | Date: | Tue, 15 Oct 2002 00:21:06 +0000 |
| Subject: | Dereferencing associative arrays? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6135@lists.php.net to get a copy of this message | ||
Hello,
When I try to dereference an associative array "user" like this:
{assign var="message" value="$user.name"}
I get such an output of {$message}:
Array.name
...but when I perform:
{assign var="message" value="$user[name]"}
...I get the correct output of {$message}:
John Smith
What I do wrong?