Home >Backend Development >PHP Tutorial >link() function in PHP
Use the link() function in PHP to create a hard link.
link(target, link)
target - The target of the link. Required.
#link - The name of the link. Required.
link() function returns TRUE when successful and FALSE when failed.
<?php $file = 'new.php'; $newlink = 'mynew'; link($file, $newlink); ?>
True
The above is the detailed content of link() function in PHP. For more information, please follow other related articles on the PHP Chinese website!