- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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
Advertisements