howto loop nested arrays?

From: Date: Sun, 15 Apr 2001 10:51:04 +0000
Subject: howto loop nested arrays?
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-545@lists.php.net to get a copy of this message
Hi! I am just wondering how to loop through this array in smarty. array( array( "one" => 1, "two" => 2, "another" => array ("o" => 1, "t" => 2) ) array( "one" => 3, "two" => 4, "another" => array ("o" => 12, "t" => 43) ) ) So I know I can have one outer section. Lets say we assigned this array as ex. {secition name=outer loop=ex} <br>{$outer/ex.one}<br>{$outer/ex.two} {section name=inner loop=$outer/ex.another} The question is how to name the inner loop section with the loop var, and then how to access the vars? {/section} {/section} Thanks, Goba ........................................................... . . . . . Editor of the Hungarian PHP manual, Admin of the Hungarian PHP mirror

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