编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « Threaded::run
  • Threaded::synchronized »
  • PHP Manual
  • Threaded
  • Manipulation

Threaded::shift

(PECL pthreads >= 2.0.0)

Threaded::shift — Manipulation

说明

public Threaded::shift ( void ) : boolean

弹出对象属性表中第一项数据

返回值

对象属性表中的第一项数据

范例

Example #1 弹出对象属性表中第一项数据

<?php
$safe 
= new Threaded();

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

var_dump($safe->shift());
?>

以上例程会输出:

int(0)

相关文章
php commonmark node ast manipulationphp commonmark node ast manipulationphp commonmark node ast manipulationphp commonmark node ast manipulationphp commonmark node ast manipulationphp commonmark node ast manipulationphp imap 函数 returns a tree of threaded messagephp pht threaded acquires the mutex lockphp pht threaded releases the mutex lockphp threaded 操作php threaded runtime manipulationphp threaded creationphp threaded 错误检测php threaded 状态检测php threaded 状态检测php threaded 同步控制php threaded manipulationphp ui draw brush gradient stop manipulationphp ui draw brush gradient stop manipulationphp ui draw brush gradient stop manipulation
关注编程学问公众号
编程学问网 湘ICP备20001732号