PHP is_link () function
Definition and Usage
Are The is_link () function checks the specified file is a connection.
If the file is a connection, the function returns TRUE.
grammar
is_link(file)
参数 | 描述 |
---|---|
file | 必需。规定要检查的文件。 |
Tips and Notes
Note: The results of this function are cached.Use clearstatcache () to clear the cache.
Examples
<?php
$link = "images";
if(is_link($link))
{
echo ("$link is a link");
}
else
{
echo ("$link is not a link");
}
?>
$link = "images";
if(is_link($link))
{
echo ("$link is a link");
}
else
{
echo ("$link is not a link");
}
?>
The code above will output:
images is not a link
Complete PHP Filesystem Reference Manual