SplFileObject::setFlags
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
SplFileObject::setFlags — Sets flags for the SplFileObject
返回值
没有返回值。
范例
示例 #1 SplFileObject::setFlags() example
<?php
$file = new SplFileObject("data.csv");
$file->setFlags(SplFileObject::READ_CSV);
foreach ($file as $fields) {
var_dump($fields);
}
?>

User Contributed Notes
There are no user contributed notes for this page.
备份地址:http://www.lvesu.com/blog/php/splfileobject.setflags.php