PHP filegroup() 函数

PHP 教程 · 2019-01-24 22:43:37

定义和用法

filegroup() 函数返回指定文件的组 ID。

如果成功,该函数返回指定文件所属组的 ID。如果失败,则返回 FALSE。

语法


filegroup(filename)


参数 描述
filename 必需。规定要检查的文件。

提示和注释

注释:该函数的结果会被缓存。请使用 clearstatcache() 来清除缓存。

注释:该函数不能在 Windows 系统上运行。

提示:请使用 posix_getgrgid() 来把组 ID 转换为组名。

实例


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


点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html

查看所有标签

Data Structures and Algorithms in Python

Data Structures and Algorithms in Python

Michael T. Goodrich、Roberto Tamassia、Michael H. Goldwasser / John Wiley & Sons / 2013-7-5 / GBP 121.23

Based on the authors' market leading data structures books in Java and C++, this book offers a comprehensive, definitive introduction to data structures in Python by authoritative authors. Data Struct......一起来看看 《Data Structures and Algorithms in Python》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

URL 编码/解码
URL 编码/解码

URL 编码/解码

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具