SplFileInfo::getMTime
SplFileInfo::getPath
SplFileInfo
PHP Manual

# SplFileInfo::getOwner

(PHP 5 >= 5.1.2)

SplFileInfo::getOwner — Gets the owner of the file

### Descripción

public int SplFileInfo::getOwner ( void )

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

### Lista de parámetros

This function has no parameters.

### Valores retornados

The owner id in numerical format.

### Errors/Exceptions

Throws RuntimeException on error.

### Ejemplos

Example #1 SplFileInfo::getOwner() example

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

### Ver también

- posix_getpwuid() - Devuelve información sobre un usuario a traves de su id
- SplFileInfo::getGroup - Gets the file group

SplFileInfo::getMTime
SplFileInfo::getPath
SplFileInfo
PHP Manual