PHP filegroup() Function
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
Complete PHP Filesystem Reference Manual