编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « Threaded::chunk
  • Threaded::extend »
  • PHP Manual
  • Threaded
  • 操作

Threaded::count

(PECL pthreads >= 2.0.0)

Threaded::count — 操作

说明

public Threaded::count ( void ) : int

返回对象的属性数量

参数

此函数没有参数。

返回值

范例

Example #1 计算对象中的属性数量

<?php
$safe 
= new Threaded();

while (
count($safe) < 10) {
    
$safe[] = count($safe);
}

var_dump(count($safe));
?>

以上例程会输出:

int(10)

相关文章
php xml 操作 libxmlphp xml 操作 service data objectsphp xml 操作 sdo relational data access servicephp imap 函数 returns a tree of threaded messagephp zend engine 2 操作码列表 opcode descriptions and examplesphp php 核心:骇客指南 zend engine 2 操作码列表php memcached 返回最后一次操作的结果代码php memcached 返回最后一次操作的结果描述消息php pdostatement 获取跟上一次语句句柄操作相关的 sqlstatephp pht runnable the entry point of a threaded classphp 函数参考 音频格式操作php threaded 操作php threaded 操作php threaded runtime manipulationphp threaded creationphp threaded 错误检测php threaded 状态检测php threaded 操作php threaded 操作php threaded synchronization
关注编程学问公众号
编程学问网 湘ICP备20001732号