Home Tutorial Php Phpfiles PHP function is_readable() and example

 
 

PHP function is_readable() and example
Posted on: October 30, 2009 at 12:00 AM
In this segment of the tutorial we will learn about the function is_readable() in context of file handling. And also we will see the example related to the is_readable() function

Syntax for PHP is_readable() Function
bool is_readable(file_name)

  • The PHP is_readable function states whether the given file is readable or not


Example of PHP is_readable() Function

Code
<?php

    $a
=is_readable("c:/rose1/ram.txt");

    if
($a)
    echo
"readable";
    else
    echo
"not readable";
?>


Output
readable

Related Tags for PHP function is_readable() and example:


Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.