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::__constructConstruir un objeto nuevo SplFileInfo

Descripción

public SplFileInfo::__construct ( string $file_name )

Crea un nuevo objeto para el SplFileInfo nombre_archivo especificado. El fichero no tiene por qué existir, o ser de lectura.

Parámetros

file_name

Ruta del fichero.

Ejemplos

Ejemplo #1 SplFileInfo::__construct() ejemplo

<?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 | stats | sitemap | contact | advertising | mirror sites