UK [?ri:d?bl] US [?rid?b?l]

adj.Easy to read; easy to understand

php is_readable() function syntax

Function: Determine whether the specified file name is readable.

Syntax: is_readable(file)

## Parameters:

ParameterDescriptionfile Required. Specifies the documents to be checked.

Description: Returns TRUE if the file or directory specified by file exists and is readable.

php is_readable() function example

<?php
$file = is_readable("./test.txt");
if($file == 1)
{
    echo "該文件是可讀的";
}else{
    echo "該文件不可讀";
}
?>