SplFileInfo::getGroup

Gets the file group

Beschreibung

public int SplFileInfo::getGroup ( void )

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

Parameter-Liste

Diese Funktion hat keine Parameter.

Rückgabewerte

The group id in numerical format.

Fehler/Exceptions

Throws RuntimeException on error.

Beispiele

Beispiel #1 SplFileInfo::getGroup example

<?php
$info 
= new SplFileInfo(__FILE__);
print_r(posix_getgrgid($info->getGroup()));
?>

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

Siehe auch

  • posix_getgrgid