Manuel PHP
SplFileInfo::getType
(PHP 5 >= 5.1.2)
SplFileInfo::getType — Gets file type
Description
public string SplFileInfo::getType
( void
)
Returns the type of the file referenced.
Liste de paramètres
Cette fonction ne contient aucun paramètre.
Valeurs de retour
A string representing the type of the entry. May be one of file, link, or dir
Erreurs / Exceptions
Throws a RuntimeException on error.
Exemples
Exemple #1 SplFileInfo::getType() example
L'exemple ci-dessus va afficher quelque chose de similaire à :
file
dir
Remonter 
