The PHP is_link() function checks whether the specified filename is a symbolic link.

				
					<?php
$file = 'images';
if(is_link($file)) {
    echo ('Is a symbolic link');
}
else {
    echo ('Not a symbolic link');
}
?>
				
			

Output

				
					Not a symbolic link
				
			

Syntax

				
					is_link(file)