PHP Doku:: Construct a new SplFileInfo object - splfileinfo.construct.html

Verlauf / Chronik / History: (8) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzSonstige GrunderweiterungenStandard PHP Library (SPL)DateibehandlungThe SplFileInfo classSplFileInfo::__construct

Ein Service von Reinhard Neidl - Webprogrammierung.

The SplFileInfo class

<<The SplFileInfo class

SplFileInfo::getATime>>

SplFileInfo::__construct

(PHP 5 >= 5.1.2)

SplFileInfo::__constructConstruct a new SplFileInfo object

Beschreibung

SplFileInfo::__construct ( string $file_name )

Creates a new SplFileInfo object for the file_name specified. The file does not need to exist, or be readable.

Parameter-Liste

file_name

Path to the file.

Beispiele

Beispiel #1 SplFileInfo::__construct() example

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


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)