Manuel PHP
SplFileInfo::getPathname
(PHP 5 >= 5.1.2)
SplFileInfo::getPathname — Gets the path to the file
Description
public string SplFileInfo::getPathname
( void
)
Returns the path to the file.
Liste de paramètres
Cette fonction ne contient aucun paramètre.
Valeurs de retour
The path to the file.
Exemples
Exemple #1 SplFileInfo::getPathname() example
- <?php
- $info = new SplFileInfo('/usr/bin/php');
- var_dump($info->getPathname());
- ?>
L'exemple ci-dessus va afficher quelque chose de similaire à :
string(12) "/usr/bin/php"
Remonter 
