PHP Basics

CountableTrait

A generic implementation of the Countable interface.

Tags
author

Sebastian Meyer sebastian.meyer@opencultureconsulting.com

template

TKey of int|string

template

TValue of mixed

template

TData of array<TKey, TValue>

Table of Contents

Properties

$data  : TData
Holds the countable data.

Methods

count()  : int
Count the data items.

Properties

Methods

count()

Count the data items.

public count() : int
APIYes
Return values
int

The number of data items


        
On this page

Search results