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()));
?>

Прогляньте Також

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top