countDescriptionint count ( mixed var [, int mode])Returns the number of elements in var, which is typically an array (since anything else will have one element). If var is not an array, 1 will be returned (exception: count(NULL) equals 0).
If the optional mode parameter is set to COUNT_RECURSIVE (or 1), count() will recursivly count the array. This is particularly useful for counting all the elements of a multidimensional array. The default value for mode is 0.
Please see the Arrays section of the manual for a detailed explanation of how arrays are implemented and used in PHP.
See also is_array(), isset(), and strlen(). |
Ecommerce shopping carts Events management projects Affiliates systems Large sized web projects Real estate and vacation rental projects Asp.net and c# projects |
|||||
|
Copyright © 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 the PHP Documentation Group. Web design and webdevelopment and programming done by Software developers and web programmers
Web Design Copyright © 1999-2007. Chrisranjana Software Solutions Pvt Ltd. syndicate rss feed |