Returns the group of a file.
The value returned is the group ID in numerical form, or FALSE if the call fails.
<?php
$user = posix_getgrgid(filegroup("fileowner.php"));
print "The group of the file is: " . $user["name"];
?> The group of the file is: root This code prints the group of a file.