The filegroup() function returns the group ID of a file. The group ID is returned in numerical format, use posix_getgrgid() to resolve it to a group name.
Syntax
filegroup(file_path)
Parameters
file_path − The path of the file.
Return
The filegroup() function returns the group ID in numerical format. Use posix_getgrgid() to resolve it to a group name.
Example
Note - The result may vary on Windows system.
<?php $file_path = "/one.php"; $file_group = filegroup($file_path); echo "File Group = $file_group\n"; ?>
Output
File Group = guest