Threaded::shift

(PECL pthreads >= 2.0.0)

Threaded::shiftManipulation

说锟斤拷

public Threaded::shift ( void ) : boolean

锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟皆憋拷锟叫碉拷一锟斤拷锟斤拷锟斤拷

锟斤拷锟斤拷值

锟斤拷锟斤拷锟斤拷锟皆憋拷锟叫的碉拷一锟斤拷锟斤拷锟斤拷

锟斤拷锟斤拷

Example #1 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟皆憋拷锟叫碉拷一锟斤拷锟斤拷锟斤拷

<?php
$safe 
= new Threaded();

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

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

锟斤拷锟斤拷锟斤拷锟教伙拷锟斤拷锟斤拷锟�

int(0)