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");
}
本文出自 “我是程序我最大” 博客,请务必保留此出处http://skinglzw.blog.51cto.com/10729606/1964013
原文:http://skinglzw.blog.51cto.com/10729606/1964013