is_link

PHP 4, PHP 5, PHP 7, PHP 8
is_link - Tells whether the filename is a symbolic link
Manual
Code Examples

Example #1 Create and confirm if a file is a symbolic link

PHP Version: