The is_readable() function checks the file is readable.
This function returns TRUE if the file is readable.
Syntax
is_readable(file)
Example
$filename = 'content.txt';
if (is_readable($filename)) {
echo 'File is readable';
} else {
echo 'File is not readable';
}
Copyright ©2022 coderraj.com. All Rights Reserved.