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)