Can I count the elements of an array?

Author Message

Joris Lint

Tuesday 02 December 2003 6:20:29 am

How can I count how many elements an array has.

Jo Henrik Endrerud

Tuesday 02 December 2003 6:25:18 am

You can use the count function:

{$array|count()}

For more information, check http://www.ez.no/developer/ez_publish_3/documentation/development/libraries/ez_template/operators/arithmetics

Jo Henrik Endrerud | System Developer @ Seeds Consulting | http://www.seeds.no

Joris Lint

Tuesday 02 December 2003 7:31:36 am

Tx

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.