PHP chgrp() Function
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
Complete PHP Filesystem Reference Manual