Code Comments
Programming Forum and web based access to our favorite programming groups.Try:
{$wo[p]->locations|@count}
Since the php count function can be used as a modifier and you'd use @
to have the modifier treat its input as an array.
--- Steve <lists@iwsys.com> wrote:
> In a template I have the following section:
>
> {section name=p loop=$wo} // $wo is an array of objects
>
> $wo[p]->locations is an array of objects
>
> I would like to know if the number of values in the $wo[p]->locations
> array
> is already available. If so, what is the syntax to display it in a
> template?
>
> Thanks in advance!
>
> Steve
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.