PHP is_link() 函数
PHP is_link() 函数

定义和用法
The is_link() 函数检查指定的文件是否是一个连接。
如果文件是一个连接,该函数返回 TRUE。
语法
is_link(file)
参数 | 描述 |
---|---|
file | 必需。规定要检查的文件。 |
提示和注释
注释:该函数的结果会被缓存。请使用 clearstatcache() 来清除缓存。
实例
<?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");
}
?>
上面的代码将输出:
images is not a link

相关文章
- PHP 简介
- PHP 运算符
- PHP 超级全局变量
- PHP date() 函数
- PHP 错误处理
- PHP 异常处理
- PHP array_change_key_case() 函数
- PHP array_chunk() 函数
- PHP array_intersect() 函数
- PHP array_key_first() 函数
- PHP array_product() 函数
- PHP array_reverse() 函数
- PHP array_unique() 函数
- PHP each() 函数
- PHP in_array() 函数
- PHP ksort() 函数
- PHP list() 函数
- PHP sort() 函数
- PHP Filter 函数
- PHP Libxml 函数