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
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
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