PHP function is_link and example


 

PHP function is_link and example

In this section of the tutorial we will learn about the function is_link in context of file handling. And also we will see the example related to the is_link function

In this section of the tutorial we will learn about the function is_link in context of file handling. And also we will see the example related to the is_link function

Syntax for PHP is_link() Function
bool is_link(file_name)

  • is_link() function checks whether the given file is the link file or not


Example of PHP is_link() Function
Code

<?php

    $f
="..\filehandling";
    $b
=is_link($f);

    if
($b)
    echo
"this is the link file";
      else
    echo
"<br>this is not the link file";
?>

Output
this is not the link file

Ads