Associative Arrays with special characters

From: Date: Tue, 13 Dec 2005 20:39:16 +0000
Subject: Associative Arrays with special characters
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13188@lists.php.net to get a copy of this message
I have a serialized XML document in an associative array using XML_Serializer. Due to the use of namespaces, many of the elements in the document use a colon (:) within the name. Since the names are stored as the array key, this causes problems with smarty. How do I reference a variable such as this within smarty: $array['xlink:href'] ? When I attempt to use the correct syntax {$array.xlink:href} I get the following error: syntax error: unrecognized tag Any ideas? Thanks Andrew

« previous php.smarty.general (#13188) next »