编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 接口
  • 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 commonmark the commonmark interfaces ivisitable interfacephp 接口 the countable interfacephp data structures the hashable interfacephp mongodb bson the mongodb bson decimal128interface interfacephp mongodb bson the mongodb bson timestampinterface interfacephp mongodb bson the mongodb bson type interfacephp mysql xdevapi schemaobject interfacephp 接口 the outeriterator interfacephp pht the threaded interfacephp 接口 the recursiveiterator interfacephp 接口 the seekableiterator interfacephp 各种类及接口 the splobserver interfacephp 各种类及接口 the splsubject interfacephp com 函数 print out a php class definition for a dispatchable interfacephp 类/对象 函数 返回一个数组包含所有已声明的接口php uopz 函数 implements an interface at runtimephp reflectionclass 获取接口(interface)名称php reflectionclass 接口的实现php reflectionclass 检查类是否是一个接口(interface)php 语言参考 预定义接口
关注编程学问公众号
编程学问网 湘ICP备20001732号