• PHP Video Tutorials

PHP - Function filegroup()



The filegroup() function can return a group ID of the specified file. If it is successful, the function can return an ID of the group to which the specified file belongs. If it fails, then returns false.

Syntax

int filegroup ( string $filename )

This function can't be run on Windows systems, use the posix_getgrgid() function to convert the group ID to the group name.

Example

<?php
   $filename = "/PhpProject/sample.txt";
   echo filegroup($filename);
?>

Output

0
php_function_reference.htm
Advertisements