PHP3 Manual
PrevNext

count

count -- count elements in array

Description

int count(mixed var);

Returns the number of elements in the array.

Returns 0 is the variable is not set.

Returns 1 if the variable is not an array.

See also: sizeof(), isset(), and is_array().


PrevHomeNext
asortUpcurrent