PHP is_link() Function

The is_link() function checks whether the specified file is a link.is_link — Tells whether the filename is a symbolic link

bool is_link ( string $filename )

Tells whether the given file is a symbolic link.

Return Values

Returns TRUE if the filename exists and is a symbolic link, FALSE otherwise.

Example -

ParameterDescription
fileRequired. Specifies the open file to check

Note -

The result of this function are cached. Use clearstatcache() to clear the cache.