For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > January 2005 > Re: [SMARTY] size of array









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SMARTY] size of array
Messju Mohr

2005-01-11, 8:58 am

On Tue, Jan 11, 2005 at 10:42:16AM +0000, Abdul-Wahid Paterson wrote:
> Hi,
>
> Is there a way of finding out the size of an array from within a
> smarty template?


{$array|@count}

it's one of the examples at
http://smarty.php.net/manual/en/language.modifiers.php

> Abdul-Wahid
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com