异步写文件 swoole_async_write
更新:HHH   时间:2023-1-7


function write_callback($file, $writen)
{
   echo "write $file [$writen]\n";
   return true;
}
for ($i = 0; $i < 1; $i++)
{
   swoole_async_write("data.txt", str_repeat('A', 512), -1, "write_callback");
}




返回web开发教程...