Home
My Account
About us
Products
Support Services
Buy online
Downloads
Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
PHP Manual
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
Last updated: Mon, 26 Oct 2026
The Countable interface
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
Introduction
Classes implementing
Countable
can be used with the
count()
function.
Interface synopsis
interface
Countable
{
/* Methods */
public
function
count
():
int
}
Table of Contents
Countable::count
— Count elements of an object
Throwable::__toString
Countable::count
Predefined Interfaces and Classes
Last updated: Mon, 26 Oct 2026