logo       

[SMARTY] assoc array keys with invalid characters?: msg#00381

php.smarty.general

Subject: [SMARTY] assoc array keys with invalid characters?

i have an associative array of email headers.

for example:
$headers['from'] = 'foobar@xxxxxxxxxxx'
$headers['content-type'] = 'text/plain'

how would i go about accessing an array element with a dash in the key?

i have tried:
{$headers.content-type} gives me unknown tag error.
{$headers['content-type']} gives me a parse error.

thanks,
larry



--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise