PHP Manual

  • English French German Portuguese Spanish
  1. Function Reference
  2. Other Basic Extensions
  3. SPL
  4. Interfaces
  5. Countable
Interfaces Countable OuterIterator RecursiveIterator SeekableIterator
  • Interfaces
  • Countable::count

The Countable interface

(PHP 5 >= 5.1.0)

Introduction

Classes implementing Countable can be used with the count() function.

Interface synopsis

Countable {
/* Methods */
abstract public int count ( void )
}

Table of Contents

  • Countable::count — Count elements of an object
© Copyright © 2001-2015 The PHP Group.

© Copyright 2014. Diseñado por PHP Manual usando jfCMS.