How to display a array item in template?

From: Date: Wed, 02 Apr 2003 06:03:45 +0000
Subject: How to display a array item in template?
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9032@lists.php.net to get a copy of this message
How to display an array item in template? I have an array,like $test = array("test1", "test2", "test3"), which had been assign to template I want to display one item in this array, eg: $test[2] the array index is also a template var . eg: $user.whichtoshow if I write in this method: $test.$user.whichtoshow, it is wrong. $test[$user.whichtoshow] is wrong too. How should I write the code? ----------------------- DongX <Xu.DongDong@tomor.com.cn> Happy Everyday ! -----------------------

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