or count($this->data['Entry'])
On May 29, 4:13 am, Marcelo Andrade <[email protected]> wrote:
> On Thu, May 28, 2009 at 11:05 PM, Dave Maharaj :: WidePixels.com
>
> <[email protected]> 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 to use a different div.
>
> > Example:
>
> > [Entry] => Array
>
> Ahn... have you tried
>
> sizeof( $this->data['Entry'] )
>
> ???
>
> Best regards.
>
> --
> MARCELO DE F. ANDRADE
> Belem, PA, Amazonia, Brazil
> Linux User #221105
>
> http://mfandrade.wordpress.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---