Func Filesystem Is Writable
# PHP is_writable() Function
* * Complete PHP Filesystem Reference](#)
* * *
## Definition and Usage
The is_writable() function checks whether a specified file is writable.
If the file is writable, the function returns TRUE.
## Syntax
is_writable(file)
| Parameter | Description |
| :--- | :--- |
| file | Required. Specifies the file to check. |
* * *
## Tips and Notes
**Note:** The result of this function is cached. Use clearstatcache() to clear the cache.
* * *
## Example
The above code will output:
test.txt is writeable
* * Complete PHP Filesystem Reference](#)
YouTip