Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP filegroup() Function

PHP filegroup() Function


PHP Filesystem Reference Manual Complete PHP Filesystem Reference Manual


Definition and Usage

The filegroup() function returns the group ID of a specified file.

Returns the ID of the group the specified file belongs to on success, or FALSE on failure.

Syntax

filegroup(filename)

Parameters Description
filename Required. Specifies the file to check.

Tips and Notes

**Note:** The results of this function are cached. Use clearstatcache() to clear the cache.

**Note:** This function does not work on Windows systems.

**Tip:** Use posix_getgrgid() to convert a group ID to a group name.


Example


PHP Filesystem Reference Manual Complete PHP Filesystem Reference Manual