函数名:xattr_supported()
适用版本:PHP 5 >= 5.3.0, PHP 7
函数说明:xattr_supported()函数用于检查当前系统是否支持扩展属性(extended attributes)。
用法: bool xattr_supported ( string $filename [, int $flags = 0 ] )
参数:
返回值: 如果扩展属性支持,则返回true;否则返回false。
示例:
$filename = '/path/to/file.txt';
if (xattr_supported($filename)) {
echo "该系统支持扩展属性。";
} else {
echo "该系统不支持扩展属性。";
}
注意事项:
更多信息: