标签:turn for php lse _for else status return pid
<?php
$i=0;
while($i!=5){
$pid = pcntl_fork();
if ($pid == 0) {
echo $pid."---------hahah".getmypid().PHP_EOL;
return;
} else if($pid > 0) {
pcntl_wait($status);
} else {
echo "can not fork";
}
$i++;
}
标签:turn for php lse _for else status return pid
原文地址:https://www.cnblogs.com/php-linux/p/10420769.html