Manuel PHP
SplFileInfo::getOwner
(PHP 5 >= 5.1.2)
SplFileInfo::getOwner — Gets the owner of the file
Description
public int SplFileInfo::getOwner
( void
)
Gets the file owner. The owner ID is returned in numerical format.
Liste de paramètres
Cette fonction ne contient aucun paramètre.
Valeurs de retour
The owner id in numerical format.
Erreurs / Exceptions
Throws RuntimeException on error.
Exemples
Exemple #1 SplFileInfo::getOwner() example
- <?php
- $info = new SplFileInfo('file.txt');
- print_r(posix_getpwuid($info->getOwner()));
- ?>
Remonter 
