The lchown function changes user ownership of symbolic link. The function returns TRUE on success and FALSE on failure.
Note − This function is not implemented on Windows platforms.
Syntax
lchown(file_path, user)
Parameters
file_path − Specify the path of file. Required.
user − Specify user name or number.
Return
The lchown() function returns TRUE on success and FALSE on failure.
Example
<?php $target = new.php'; $mylink = new.html'; symlink($target, $mylink); lchown($mylink, 8); ?>
Output
TRUE