SplFileInfo::isReadable
(PHP 5 >= 5.1.2, PHP 7, PHP 8)
SplFileInfo::isReadable — Tells if file is readable
参数
此函数没有参数。
示例
示例 #1 SplFileInfo::isReadable() example
<?php
$info = new SplFileInfo('readable.jpg');
if ($info->isReadable()) {
echo $info->getFilename() . ' is readable';
}
?>
以上示例的输出类似于:
readable.jpg is readable
+添加备注
用户贡献的备注
此页面尚无用户贡献的备注。
备份地址:http://www.lvesu.com/blog/php/splfileinfo.isreadable.php