PHP is_link() 函数
PHP 教程
· 2019-01-25 10:41:44
定义和用法
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");
}
?>
上面的代码将输出:
images is not a link
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
Agile Web Application Development with Yii 1.1 and PHP5
Jeffrey Winesett / Packt Publishing / 2010-08-27
In order to understand the framework in the context of a real-world application, we need to build something that will more closely resemble the types of applications web developers actually have to bu......一起来看看 《Agile Web Application Development with Yii 1.1 and PHP5》 这本书的介绍吧!