Manuel PHP

SplFileInfo::getOwner

(PHP 5 >= 5.1.2)

SplFileInfo::getOwnerGets 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

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


Remonter Remonter
L'éditeur javascript - CSS - Gentoo - Tutoriaux PHP - Tutoriels PHP - Bretagne - php - Moto - Kit graphique