PHP Manual
Language Reference
Predefined Interfaces and Classes
Traversable
Iterator
IteratorAggregate
InternalIterator
Throwable
Countable
ArrayAccess
Serializable
Closure
stdClass
Generator
Fiber
WeakReference
WeakMap
Stringable
UnitEnum
BackedEnum
SensitiveParameterValue
__PHP_Incomplete_Class
Throwable::__toString
Countable::count
Predefined Interfaces and Classes
PHP Manual
The Countable interface
Introduction
Classes implementing
Countable
can be used with the
count
function.
Interface synopsis
Countable
/* Methods */
public
int
Countable::count
()
Table of Contents
Countable::count
— Count elements of an object