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");
}
本文转自 skinglzw 51CTO博客,原文链接:http://blog.51cto.com/skinglzw/1964013,如需转载请自行联系原作者