downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

SplFileInfo::isWritable> <SplFileInfo::isLink
[edit] Last updated: Fri, 10 Feb 2012

view this page in

SplFileInfo::isReadable

(PHP 5 >= 5.1.2)

SplFileInfo::isReadableIndique si le fichier est lisible

Description

public bool SplFileInfo::isReadable ( void )

Indique si le fichier est lisible.

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

Retourne TRUE si le fichier est lisible, et FALSE sinon.

Exemples

Exemple #1 Exemple avec SplFileInfo::isReadable()

<?php
$info 
= new SplFileInfo(__FILE__);
var_dump($info->isReadable());

$info = new SplFileInfo('foo');
var_dump($info->isReadable());
?>

L'exemple ci-dessus va afficher quelque chose de similaire à :

bool(true)
bool(false)



add a note add a note User Contributed Notes SplFileInfo::isReadable
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites