Re: Count array

2009-05-29 Thread rich...@home
or count($this->data['Entry']) On May 29, 4:13 am, Marcelo Andrade wrote: > On Thu, May 28, 2009 at 11:05 PM, Dave Maharaj :: WidePixels.com > > wrote: > > > Whats the easiest way to count the number of items in an array? I use the > > data in the array so its more than just a count. > > > I si

Re: Count array

2009-05-28 Thread Marcelo Andrade
On Thu, May 28, 2009 at 11:05 PM, Dave Maharaj :: WidePixels.com wrote: > > Whats the easiest way to count the number of items in an array? I use the > data in the array so its more than just a count. > > I simply want to find if the array has more than 5 items then pass a > variable to the view

Count array

2009-05-28 Thread Dave Maharaj :: WidePixels.com
Whats the easiest way to count the number of items in an array? I use the data in the array so its more than just a count. I simply want to find if the array has more than 5 items then pass a variable to the view to use a different div. Example: [Entry] => Array