is_link
Determine whether the given file name is a symbolic connection
is_link()
function determines whether the specified file name is a symbolic connection.
<?php $link = "images"; if(is_link($link)) { echo ("$link is a link"); } else { echo ("$link is not a link"); } ?>
输出:
images is not a link
is_link ( file )
parameter | describe |
---|---|
file | Required. Specify documents to be inspected. |
Return true if the file exists and is a symbolic connection.