$smarty.section.loop_name.last

From: Date: Sat, 30 Nov 2002 01:10:22 +0000
Subject: $smarty.section.loop_name.last
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6603@lists.php.net to get a copy of this message
Let's say I have an assigned variable called $persons which is an array having a dimension called name. So normally it will be called in a section loop like this: $persons = array( array( 'name' => 'John', 'age' => 21 ), array( 'name' => 'Chris', 'age' => 44 ) ); {section loop=$person name=i} {$person[i].name} {/section} Is there a smarty variable to fetch me the last name of a person like there's a variable for the last value of an array: $smarty.section.i.last? I tried $smarty.section.i.name.last, but it didn't seem to affect. Tero

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