How can I print an $array[index] in a section?

From: Date: Sun, 07 Apr 2002 17:55:32 +0000
Subject: How can I print an $array[index] in a section?
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3541@lists.php.net to get a copy of this message
Hi, > You can do this without a loop: > {$leftmenu.entry1} > {$leftmenu.entry2} No, I can´t, because $leftmenu is dynamically generated and I do not know, how much entries there are... > Otherwise, {foreach ...} is more suited for looping an associative array. ... yes, that´s what I found now and this works good! Great work, this smarty class! Maybe some more general questions will come up later, thanks for helping that fast! Have a nice day, Jones

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