Name

count

Synopsis

$number = count($array);

Returns the number of elements in array. If array is a nonarray variable, the function returns 1 (because a variable looks like an array with only one element). If array is not defined, is returned.

Get MySQL and mSQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.