Manuel PHP
SplFileInfo::getPath
(PHP 5 >= 5.1.2)
SplFileInfo::getPath — Gets the path without filename
Description
public string SplFileInfo::getPath
( void
)
Returns the path to the file, omitting the filename and any trailing slash.
Liste de paramètres
Cette fonction ne contient aucun paramètre.
Valeurs de retour
Returns the path to the file.
Exemples
Exemple #1 SplFileInfo::getPath() example
L'exemple ci-dessus va afficher quelque chose de similaire à :
string(8) "/usr/bin"
string(4) "/usr"
Remonter 
