lchown

Changes user ownership of symlink

&reftitle.description; `bool` `lchown` `string` `filename` ``string``int```user`

Attempts to change the owner of the symlink `filename` to user `user`.

Only the superuser may change the owner of a symlink.

&reftitle.parameters;

`filename`

- Path to the file.

`user`

- User name or number.

&reftitle.returnvalues;

&return.success;

&reftitle.examples;

### Changing the owner of a symbolic link

    <?php
    $target = 'output.php';
    $link = 'output.html';
    symlink($target, $link);

    lchown($link, 8);
    ?>

&reftitle.notes; ¬e.no-remote; ¬e.no-windows;
&reftitle.seealso;

- `chown`
- `lchgrp`
- `chgrp`
- `chmod`