Home > PHP > Function > xattr > xattr_remove()

xattr_remove()

xattr_remove - Remove an extended attribute

Syntax

bool xattr_remove (string $filename, string $name, int $flags)

Arguments

  • filename - The file from which we remove the attribute.
  • name - The name of the attribute to remove.
  • flags - Supported xattr flags XATTR_DONTFOLLOW Do not follow the symbolic link but operate on symbolic link itself. XATTR_ROOT Set attribute in root (trusted) namespace. Requires root privileges.

Description

This function removes an extended attribute of a file.

Version

PHP PECL xattr >= 0.9.0

Return value

Returns TRUE on success or FALSE on failure.