PHP Basics

CountableTrait

A generic implementation of the Countable interface.

Internally it counts the values of the protected $_data array.

Tags
author

Sebastian Meyer sebastian.meyer@opencultureconsulting.com

template

TValue of mixed

Table of Contents

Methods

count()  : int<0, max>
Count the data items.

Methods

count()

Count the data items.

public count() : int<0, max>
APIYes
Return values
int<0, max>

The number of data items


        
On this page

Search results