SplFileInfo::getGroup

(PHP 5 >= 5.1.2, PHP 7)

SplFileInfo::getGroupGets the file group

˵��

public SplFileInfo::getGroup ( void ) : int

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

����

�˺���û�в�����

����ֵ

The group id in numerical format.

�����쳣

Throws RuntimeException on error.

����

Example #1 SplFileInfo::getGroup() example

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

�������̵���������ڣ�

�μ�