Home Tutorial Php Phpfiles PHP function is_readable() and example

 
 

Share on Google+Share on Google+
PHP function is_readable() and example
Posted on: October 30, 2009 at 12:00 AM
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

Advertisement

Related Tags for PHP function is_readable() and example:


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.

Posted on: October 30, 2009

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com