Home Tutorial Php Phpfiles PHP function is_link and example

 
 

PHP function is_link and example
Posted on: October 30, 2009 at 12:00 AM
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

Related Tags for PHP function is_link and example:


Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.