SplFileInfo
PHP Manual

SplFileInfo::isWritable

(PHP 5 >= 5.1.2, PHP 7)

SplFileInfo::isWritableTells if the entry is writable

说明

public bool SplFileInfo::isWritable ( void )

Checks if the current entry is writable.

参数

此函数没有参数。

返回值

Returns TRUE if writable, FALSE otherwise;


SplFileInfo
PHP Manual