is_link

is_link -- tells whether the filename is a symbolic link

Description

bool is_link(string filename);

Returns true if the filename exists and is a symbolic link.

The results of this function are cached. See clearstatcache() for more details.

See also is_dir() and is_file().