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

 
 

Share on Google+Share on Google+

PHP function is_link and example

Ads

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

Advertisements

Posted on: October 30, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles