« Throwable::__toString
Countable::count »
PHP Manual
预定义接口和类
The Countable interface
The Countable interface
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
简介
Classes implementing
Countable
can be used with the
count()
function.
接口摘要
interface
Countable
{
/* 方法 */
public
count
():
int
}
目录
Countable::count
— Count elements of an object