Computer >> Computer tutorials >  >> Programming >> PHP

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