SplFileInfo::getOwner

(PHP 5 >= 5.1.2)

SplFileInfo::getOwnerGets the owner of the file

Beskrivelse

public int SplFileInfo::getOwner ( void )

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

Parametre

This function has no parameters.

Returnerings Værdier

The owner id in numerical format.

Fejl/Undtagelser

Throws RuntimeException on error.

Eksempler

Eksempel #1 SplFileInfo::getOwner() example

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

Se også

add a note add a note

User Contributed Notes

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