SplFileInfo
PHP Manual

SplFileInfo::getOwner

(PHP 5 >= 5.1.2)

SplFileInfo::getOwnerGets the owner of the file

説明

public int SplFileInfo::getOwner ( void )

Gets the file owner. The owner ID is returned in numerical format.

パラメータ

この関数にはパラメータはありません。

返り値

The owner id in numerical format.

エラー / 例外

Throws RuntimeException on error.

例1 SplFileInfo::getOwner() example

<?php
$info 
= new SplFileInfo('file.txt');
print_r(posix_getpwuid($info->getOwner()));
?>

参考


SplFileInfo
PHP Manual