PHP is_link() Function
In this chapter you will learn:
- Definition for PHP is_link() Function
- Syntax for PHP is_link() Function
- Parameter for PHP is_link() Function
- Return for PHP is_link() Function
- Note for PHP is_link() Function
- Example - PHP is_link() Function
Definition
The is_link() function checks whether the specified file is a link.
Syntax
PHP is_link() Function has the following syntax.
is_link(file)
Parameter
Parameter | Is Required | Description |
---|---|---|
file | Required. | File to check |
Return
This function returns TRUE if it is a link.
Note
The result of this function are cached. Use clearstatcache() to clear the cache.
Example
<?php/*from j a v a 2 s. co m*/
$link = "images";
if(is_link($link)){
echo ("$link is a link");
}else{
echo ("$link is not a link");
}
?>
The code above generates the following result.
Next chapter...
What you will learn in the next chapter:
- Definition for PHP is_readable() Function
- Syntax for PHP is_readable() Function
- Parameter for PHP is_readable() Function
- Return for PHP is_readable() Function
- Note on PHP is_readable() Function
- Example - checks whether the specified file is readable
Home » PHP Tutorial » PHP File Functions