Home Menu

is_writable

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

<?

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

$return = is_writable($filename);

var_export($return);

?>
true

PHP

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms