Array problem

From: Date: Sat, 23 Nov 2002 19:21:25 +0000
Subject: Array problem
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6527@lists.php.net to get a copy of this message
Now why doesn't this work? $smart = 'array("FirstName" => "Ned","LastName" => "Flanders"), array("FirstName" => "Monty","LastName" => "Burns")'; $smarty->assign(array("ContactInfo" => array($smart))); It's an example from the Quickstart guide, only with a little modification, that the whole string is stored in a variable instead of putting it directly to the assign function. I need to do this that way. It should output: Ned Flanders Monty Burns instead I get a a just a one-row array. Any solutions? Mike

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