PHP Doku:: Gets the path to the file - splfileinfo.getpathname.html

Verlauf / Chronik / History: (10) anzeigen

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

Ein Service von Reinhard Neidl - Webprogrammierung.

The SplFileInfo class

<<SplFileInfo::getPathInfo

SplFileInfo::getPerms>>

SplFileInfo::getPathname

(PHP 5 >= 5.1.2)

SplFileInfo::getPathnameGets the path to the file

Beschreibung

public string SplFileInfo::getPathname ( void )

Returns the path to the file.

Parameter-Liste

Diese Funktion hat keine Parameter.

Rückgabewerte

The path to the file.

Beispiele

Beispiel #1 SplFileInfo::getPathname() example

<?php
$info 
= new SplFileInfo('/usr/bin/php');
var_dump($info->getPathname());
?>

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

string(12) "/usr/bin/php"

Siehe auch


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",...)