<?php
$list=[
'aa','bb','cc','dd','ee'
];
while ($list) {
$result=array_pop($list);
echo $result.PHP_EOL;
sleep(3);
}
echo 'list is null'.PHP_EOL;
<?php
$list=[
'aa','bb','cc','dd','ee'
];
while ($list) {
$result=array_pop($list);
echo $result.PHP_EOL;
sleep(3);
}
echo 'list is null'.PHP_EOL;
本文标题:PHP实现简单消息队列
本文链接:https://www.haomeiwen.com/subject/isjfvftx.html
网友评论