The lchgrp() function changes group ownership of symlink. It returns TRUE on success and FALSE on failure.
Note − Only the superuser may change the group of a symlink arbitrarily.
Note − This function is not implemented on Windows platforms.
Syntax
lchgrp(file_path, group)
Parameters
file_path − Path to the symbolic link.
group − Specify the group as name or number.
Return
The lchgrp() function returns TRUE on success and FALSE on failure.
Example
<?php $target = new.php'; $mylink = new.html'; symlink($target, $mylink); lchgrp($mylink, 8); ?>
Output
TRUE