PHP filegroup() Function

The filegroup() function returns the group ID of the specified file.This function returns the group ID on success or FALSE on failure.

int filegroup ( string $filename )

Gets the file group. The group ID is returned in numerical format, use posix_getgrgid() to resolve it to a group name.

Example -

ParameterDescription
filenameRequired. Specifies the file to check

Note -

The result of this function is cached. Use clearstatcache() to clear the cache. This function doesn't produce meaningful results on Windows systems.