How can i get the count of the loop in cakephp
[Book] => Array
(
[0] => Array
(
[id] => 48
[bookmaster_id] => 6
[condition] => not bad
[comments] => not bad
[isArchived] =>
)
[1] => Array
(
[id] => 50
[bookmaster_id] => 6
[condition] => ok
[comments] => ok
[isArchived] =>
)
)
i want to get the value of count of arry book
Assuming this array is called $books
Unless you want to do the count in the database in which case use
find('count', array..)http://book.cakephp.org/2.0/en/models/retrieving-your-data.html