In Volt (the template engine for Phalcon) how can I get the number of elements in an array? I've tried sizeof
and also count
, length
and size
(hoping to stumble upon the correct command).
In this particular instance I'm just interested in whether there are >0 elements but in the future it would be handy to be able to get the actual number.