readlink() function in PHP

王林
Release: 2023-09-23 16:38:01
forward
1354 people have browsed it

readlink() function in PHP

The readlink() function returns the target of the symbolic link. It returns the contents of the symbolic link path, otherwise it returns FALSE on error.

Syntax

readlink(path)
Copy after login

Parameters

  • path - The path of the symbolic link

< h2>Return

The readlink() function returns the content of the symbolic link path. Returns FALSE on error.

Example

<?php
   echo readlink(&#39;/netbeans);
?>
Copy after login

Output

/execuatble/netbeans-8.2.0
Copy after login

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

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!