编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 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 runnable the entry point of a threaded classphp threaded 操作php threaded 操作php threaded runtime manipulationphp threaded creationphp threaded 错误检测php threaded 状态检测php threaded 状态检测php threaded manipulationphp threaded synchronizationphp ui draw brush gradient stop manipulationphp ui draw brush gradient stop manipulationphp ui draw brush gradient stop manipulation
关注编程学问公众号
编程学问网 湘ICP备20001732号