Forums / Developer / Can I count the elements of an array?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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