readlink() function in PHP


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

Syntax

readlink(path)

Parameters

  • path − The path of the symbolic link

Return

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

Example

<?php
   echo readlink('/netbeans);
?>

Output

/execuatble/netbeans-8.2.0

Samual Sam
Samual Sam

Learning faster. Every day.

Updated on: 24-Jun-2020

152 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements