PHP » I/O » filegroup()

Syntax:
int filegroup(string filename)
filename
The name of the file.

Returns the group of a file.

The value returned is the group ID in numerical form, or FALSE if the call fails.

Examples

Code:
<?php

$user = posix_getgrgid(filegroup("fileowner.php"));
print "The group of the file is: " . $user["name"];

?>
Output:
The group of the file is: root
Explanation:

This code prints the group of a file.

See Also: