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

readlink() function in PHP

王林
王林forward
2023-09-23 16:37:021473browse

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)

Parameters

  • path - The path of the symbolic link

Return

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

Example

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

Output

/execuatble/netbeans-8.2.0

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

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete