is_writable
Description
Tells whether the filename is writable
Syntax
is_writable(string $filename): bool
Parameters
filename
The filename being checked.
Return
Returns true if the filename exists and is writable.
Examples
1
<? $filename = $_SERVER['DOCUMENT_ROOT'] . '/assets/txt/file.txt'; $return = is_writable($filename); var_export($return); ?>
true