Share on Google+Share on Google+

PHP function is_link and example

Advertisement
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

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.