PHP filegroup() Function

Definition

The filegroup() function returns the group ID of the specified file.

Syntax

PHP filegroup() Function has the following syntax.

filegroup(filename)

Parameter

ParameterIs RequiredDescription
filenameRequired.File to check

Return

This function returns the group ID on success or FALSE on failure.

Note

The result of this function are cached. Use clearstatcache() to clear the cache.

This function doesn't produce useful results on Windows systems.

Use posix_getgrgid() to convert the group ID to a group name.

Example

Get the file group information


<?php
echo filegroup("test.txt");
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Function reference »




PHP Array Functions
PHP Calendar Functions
PHP Class Functions
PHP Data Type Functions
PHP Date Functions
PHP File Functions
PHP Image Functions
PHP Math Functions
PHP MySQLi Functions
PHP SimpleXML Functions
PHP String Functions
PHP XML Functions
PHP Zip Functions