编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 接口
  • 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 预定义接口 iterator(迭代器)接口php 核心类 the mongocursorinterface interfacephp mongodb bson the mongodb bson minkeyinterface interfacephp mongodb bson the mongodb bson objectidinterface interfacephp 接口 the outeriterator interfacephp 接口 the recursiveiterator interfacephp 接口 the seekableiterator interfacephp 各种类及接口 the splobserver interfacephp 各种类及接口 the splsubject interfacephp 预定义接口 traversable(遍历)接口php newt 函数 resume using the newt interface after calling newt suspendphp counter 扩展 一个连续的实例 简单接口php reflectionclass 获取接口(interface)名称php reflectionclass 检查类是否是一个接口(interface)php reflectionmethod 返回一个动态建立的方法调用接口,译者注:可以使用这个返回值直接调用非公开方法。php yaf route interface 将指定路由规则组合成一个urlphp yaf route interface route a requestphp yaf view interface 为视图引擎分配一个模板变量
关注编程学问公众号
编程学问网 湘ICP备20001732号