编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 接口
  • 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 接口 the countable interfacephp 日期/时间 the datetimeinterface interfacephp data structures the sequence interfacephp mongodb bson the mongodb bson maxkeyinterface interfacephp mongodb bson the mongodb bson utcdatetimeinterface interfacephp mysql xdevapi crudoperationskippable interfacephp mysql xdevapi crudoperationsortable interfacephp 接口 the outeriterator interfacephp 接口 the recursiveiterator interfacephp 接口 the seekableiterator interfacephp 各种类及接口 the splobserver interfacephp 各种类及接口 the splsubject interfacephp 类/对象 函数 检查接口是否已被定义php readline 函数 初始化一个 readline 回调接口,然后终端输出提示信息并立即返回php 范例 对象化接口php counter 扩展 一个连续的实例 扩展接口php quick start guide dual procedural and object oriented interfacephp reflectionclass 获取接口(interface)名称php reflectionclass 检查类是否是一个接口(interface)php varnishadmin connect to a varnish instance administration interface
关注编程学问公众号
编程学问网 湘ICP备20001732号