The is_link() function checks whether the specified file is a link in PHP
Description
The following code shows how to the is_link() function checks whether the specified file is a link.
Example
/*from w w w . j a v a2s . c o m*/
<?php
$link = "test.txt";
if(is_link($link)){
echo ("$link is a link");
}else{
echo ("$link is not a link");
}
?>
The code above generates the following result.