Menu Samaritan's Purse

READLINK

Returns the target of a symbolic link

SYNTAX

readlink ( string $path ) : string

PARAMETERS

path

The symbolic link path.

RETURN

Returns the contents of the symbolic link path or FALSE on error.

Note: The function fails if path is not a symlink, except on Windows, where the normalized path will be returned.

EXAMPLES

readlink.php

PHP