Share on Google+Share on Google+

PHP function is_readable() and example

Advertisement
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

Advertisements

Posted on: October 30, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.