PHP 中的 link() 函数
phpprogrammingserver side programming更新于 2025/8/9 15:52:17
使用 PHP 中的 link() 函数创建硬链接。
语法
link(target, link)
参数
target − 链接的目标。必填项。
link − 链接的名称。必填项。
返回值
link() 函数成功时返回 TRUE,失败时返回 FALSE。
示例
<?php $file = 'new.php'; $newlink = 'mynew'; link($file, $newlink); ?>
输出
True

