(PHP 5 >= 5.1.2, PHP 7, PHP 8)
SplFileInfo::isWritable — Tells if the entry is writable
Checks if the current entry is writable.
This function has no parameters.
Returns true if writable, false otherwise;
true
false