English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Basic PHP Tutorial

Advanced PHP Tutorial

PHP & MySQL

PHP Reference Manual

Usage and Examples of PHP filegroup() Function

PHP Filesystem Reference Manual

The filegroup() function can return the group ID of the specified file. If successful, the function can return the ID of the group to which the specified file belongs. If it fails, it returns false.

Syntax

int filegroup ( string $filename )

This function cannot be run on Windows systems. To get the ID of the group to which the file belongs, the group ID is returned in numeric format, and it can be parsed into a group name using posix_getgrgid().

Online Example

<?php
   $filename = "sample.txt";
   echo filegroup($filename);
?>
Test and See‹/›

Output Result

0

PHP Filesystem Reference Manual