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()));
?>

锟斤拷锟斤拷锟斤拷锟教碉拷锟斤拷锟斤拷锟斤拷锟斤拷冢锟�

锟轿硷拷