assoc array keys with invalid characters?
| From: | larry osborn | Date: | Mon, 27 Jan 2003 23:41:33 +0000 |
| Subject: | assoc array keys with invalid characters? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-7356@lists.php.net to get a copy of this message | ||
i have an associative array of email headers.
for example:
$headers['from'] = 'foobar@example.com'
$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