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

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