参考链接 http://php.net/manual/zh/splfileobject.fgets.php
SqlFileObject相对于传统的open($filename, 'r') 产生的对象的优点在于
不需要打开文件句柄 不需要关闭句柄 更加的方便
$handle = new SplFileObject("sid_list.txt"); while (!$handle->eof()) { $item = $handle->fgets();
}
参考链接 http://php.net/manual/zh/splfileobject.fgets.php
SqlFileObject相对于传统的open($filename, 'r') 产生的对象的优点在于
不需要打开文件句柄 不需要关闭句柄 更加的方便
$handle = new SplFileObject("sid_list.txt"); while (!$handle->eof()) { $item = $handle->fgets();
}