编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 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 音频格式操作 id3 tagsphp xml 操作 libxmlphp xml 操作 sdo xml data access servicephp xml 操作 service data objectsphp xml 操作 sdo relational data access servicephp pht the threaded interfacephp imap 函数 returns a tree of threaded messagephp mysql 函数 取得前一次 mysql 操作所影响的记录行数php zend engine 2 操作码列表 opcode descriptions and examplesphp pdo 获取跟数据库句柄上一次操作相关的 sqlstatephp pht runnable the entry point of a threaded classphp 函数参考 音频格式操作php threaded 操作php threaded 操作php threaded runtime manipulationphp threaded 操作php threaded 操作php threaded 同步控制php threaded 同步控制php threaded synchronization
关注编程学问公众号
编程学问网 湘ICP备20001732号