Home > Backend Development > PHP Tutorial > link() function in PHP

link() function in PHP

王林
Release: 2023-09-05 19:46:02
forward
1775 people have browsed it

link() function in PHP

Use the link() function in PHP to create a hard link.

Syntax

link(target, link)
Copy after login

Parameters

  • target - The target of the link. Required.

  • #link - The name of the link. Required.

Return

link() function returns TRUE when successful and FALSE when failed.

Example

<?php
   $file = &#39;new.php&#39;;
   $newlink = &#39;mynew&#39;;
   link($file, $newlink);
?>
Copy after login

Output

True
Copy after login

The above is the detailed content of link() function in PHP. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template