What is is link in PHP Filesystem

In this article I will go to explain about is_link function in PHP.
  • 1425

PHP is_link() Function

The filesystem is_link function checks whether the specified file is a link.

Syntax of is_link function

is_link(file,)

Parameters in is_link function

It has only parameter:

Parameter Description
file It specifies the file to check.

Example of filesystem is_link function

<html>
<body>

<?php
$link = "C:\wamp\www\Dinesh\Mcn.txt";
if(is_link($link))
{
echo ("$link is a link");
}
else
{
echo ("$link is not a link");
}
?>

</body>
</html>

 

Output:

islinkfunctionphp.jpg

You may also want to read these related articles :
here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.