is_readable

  • PHP

    $readable = is_readable('/path/to/foobar');
    var_export($readable);
     
    //=> true

    Ruby

    readable = File.readable?('/path/to/foobar')
    p readable
     
    #=> true

    see also

is_object is_real

Looking for Rails or PHP web application development, integration, and training?

Rails for PHP is brought to you by Maintainable Software. Get custom web applications and personalized training from the authors of the book and website.