filegroup() function in PHP


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
"; ?>

Output

File Group = guest

karthikeya Boyini
karthikeya Boyini

I love programming (: That's all I know

Updated on: 24-Jun-2020

44 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements