PHP is_link() Function
Complete PHP Filesystem Reference Manual
Definition and Usage
The is_link() function checks whether the specified file is a link.
Returns TRUE if the file is a link.
Syntax
is_link(file)
| Parameters | Description |
|---|---|
| file | Required. Specifies the file to check. |
Tips and Notes
**Note:** The results of this function are cached. Use clearstatcache() to clear the cache.
Example
The code above will output:
images is not a link
Complete PHP Filesystem Reference Manual