표준 PHP 라이브러리(SPL) The Countable interface
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
소개
Countable을 구현하는 클래스는 count() 함수와 함께 사용할 수 있습니다.
인터페이스 개요
interface Countable {
/* Methods */
public count(): int
}
목차
- Countable::count — 개체의 요소 계산