is_readable

It checks whether the file exists and is readable

Example

<?php

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

?>

Output

Yes

Share