SplFileInfo::getGroup

(PHP 5 >= 5.1.2)

SplFileInfo::getGroupGets the file group

Beskrivelse

public int SplFileInfo::getGroup ( void )

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

Parametre

This function has no parameters.

Returnerings Værdier

The group id in numerical format.

Fejl/Undtagelser

Throws RuntimeException on error.

Eksempler

Eksempel #1 SplFileInfo::getGroup() example

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

The above example will output something similar to:

Se også

add a note add a note

User Contributed Notes

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