Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

is_writable

Description

The is_writable of Filesystem for PHP 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

<?

$filename = $_SERVER['DOCUMENT_ROOT'] . '/assets/txt/1.txt';

$return = is_writable($filename);

var_export($return);

?>
true
HomeMenu