How can I use the is_readable function to check if a file is readable in PHP? Example code: - Biz Tech

How can I use the is_readable function to check if a file is readable in PHP? Example code:

Listen
$file = "/path/to/file.txt";

if (is_readable($file)) {
    echo "The file is readable";
} else {
    echo "The file is not readable";
}