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

search for in the

SplFileInfo::getATime> <SplFileInfo
[edit] Last updated: Fri, 17 May 2013

view this page in

SplFileInfo::__construct

(PHP 5 >= 5.1.2)

SplFileInfo::__constructConstruit un nouvel objet SplFileInfo

Description

public SplFileInfo::__construct ( string $file_name )

Crée un nouvel objet SplFileInfo pour le nom de fichier indiqué. Le fichier n'a pas besoin d'être lisible ou même d'exister.

Liste de paramètres

file_name

Le chemin jusqu'au fichier.

Exemples

Exemple #1 Exemple avec SplFileInfo::__construct()

<?php
$info 
= new SplFileInfo('example.php');
if (
$info->isFile()) {
    echo 
$info->getRealPath();
}
?>



add a note add a note User Contributed Notes SplFileInfo::__construct - [0 notes]
There are no user contributed notes for this page.

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