Code Comments
Programming Forum and web based access to our favorite programming groups.--- Rainer Müller <mueller_rainer@gmx.de> wrote:
> Hi,
>
> is there a way to output the number of items in an array?
> I tried {$foo|count} but that did not work.
Take a close look at
http://smarty.php.net/manual/en/language.modifiers.php -- when passing
an array to a modifier, you add the @ operator like this:
{$foo|@count}
xo boots
> Rainer
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.