HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

lchgrp

Description

The lchgrp of Filesystem for PHP changes group ownership of symlink.

Syntax

lchgrp(
    string $filename,
    string|int $group
): bool

Parameters

filename

Path to the symlink.

group

The group specified by name or number.

Return

Returns true on success or false on failure.

Examples

1 · filename group

<?

$target = "output.php";
$filename = "output.html";
symlink($target, $filename);
printf("%d\n", filegroup($target));

$group = 8;
lchgrp($filename, $group);
printf("%d", filegroup($target));

unlink($filename);
0
8