|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Budda Smarty Regular
Joined: 19 Apr 2003 Posts: 53 Location: Lymm, Cheshire. UK
|
Posted: Wed Mar 10, 2004 3:25 pm Post subject: Array element count |
|
|
Have I overlooked a way to obtain the number/count of elements in an array variable?, from inside the Smarty template.
Or should i just assign the array count to another variable and pass it in from the ->assign() method? |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Wed Mar 10, 2004 3:33 pm Post subject: |
|
|
{$myarray|@count} |
|
Back to top |
|
Budda Smarty Regular
Joined: 19 Apr 2003 Posts: 53 Location: Lymm, Cheshire. UK
|
Posted: Wed Mar 10, 2004 4:34 pm Post subject: |
|
|
Perfick!
Not see that @ notation before. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|