Count elements

# ArrayIterator::count

(PHP 5, PHP 7, PHP 8)

ArrayIterator::count — Count elements

### 说明

public function ArrayIterator::count(): int

Gets the number of elements in the array, or the number of public properties in the object.

警告

本函数还未编写文档，仅有参数列表。

### 参数

此函数没有参数。

### 返回值

The number of elements or public properties in the associated array or object, respectively.

### 参见

- ArrayIterator::getFlags() - Get behavior flags

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open