The filegroup() function returns the group ID of the specified file.
If successful, this function returns the ID of the group to which the specified file belongs. If it fails, returns FALSE.
filegroup(filename)
parameter | describe |
---|---|
filename | Required. Specifies the documents to be checked. |
Note: The results of this function will be cached. Please use clearstatcache() to clear the cache.
Note: This function does not work on Windows systems.
Tip: Use posix_getgrgid() to convert the group ID to a group name.
<?phpecho filegroup("test.txt");?>