is_writable

It checks whether  the filename is writable

Example

<?php

echo is_writable(‘test.txt’)?”Yes”:”No”;

?>

Output

Yes