编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 接口
  • Countable::count »
  • PHP Manual
  • 接口
  • The Countable interface

The Countable interface

(PHP 5 >= 5.1.0, PHP 7)

简介

类实现 Countable 可被用于 count() 函数.

接口摘要

Countable {
/* 方法 */
abstract public count ( void ) : int
}

Table of Contents

  • Countable::count — 统计一个对象的元素个数
相关文章
php 影响 php 行为的扩展 foreign function interfacephp 接口 the countable interfacephp 日期/时间 the datetimeinterface interfacephp data structures the sequence interfacephp 预定义接口 生成器类php mysql xdevapi databaseobject interfacephp 接口 the outeriterator interfacephp 接口 the recursiveiterator interfacephp 接口 the seekableiterator interfacephp 各种类及接口 the splobserver interfacephp 各种类及接口 the splsubject interfacephp 预定义接口 traversable(遍历)接口php 类/对象 函数 检查接口是否已被定义php newt 函数 resume using the newt interface after calling newt suspendphp counter 扩展 一个连续的实例 扩展接口php 从 php 5.3.x 迁移到 php 5.4.x 新的类和接口php 从 php 5.4.x 迁移到 php 5.5.x 新的类和接口php reflectionclass 获取接口(interface)名称php reflectionclass 检查类是否是一个接口(interface)php varnishadmin disconnect from a varnish instance administration interface
关注编程学问公众号
编程学问网 湘ICP备20001732号