Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP chgrp() Function

PHP chgrp() Function


PHP Filesystem Reference Manual Complete PHP Filesystem Reference Manual


Definition and Usage

The chgrp() function changes the user group of a specified file.

Returns TRUE on success, FALSE on failure.

Syntax

chgrp(file,group)

Parameters Description
file Required. Specifies the file to check.
group Optional. Specifies the new group. Can be a group name or a group ID.

Example


PHP Filesystem Reference Manual Complete PHP Filesystem Reference Manual