<?php /** * descript: phpstrom * User: singwa * Date: 18/3/7 * Time: 上午1:53 */ /** * 读取文件 * __DIR__ */ $result = SwooleAsync::readfile(__DIR__."/1.txt", function($filename, $fileContent) { echo "filename:".$filename.PHP_EOL; // echo "content:".$fileContent.PHP_EOL; }); var_dump($result); echo "start".PHP_EOL;