Current Location: Home> Function Categories> is_link

is_link

Determine whether the given file name is a symbolic connection
Name:is_link
Category:File system
Programming Language:php
One-line Description:Determines whether the specified file is a connection.

Definition and usage

is_link() function determines whether the specified file name is a symbolic connection.

实例

<?php
$link = "images";
if(is_link($link))
  {
  echo ("$link is a link");
  }
else
  {
  echo ("$link is not a link");
  }
?>

输出:

images is not a link

grammar

 is_link ( file )
parameter describe
file Required. Specify documents to be inspected.

illustrate

Return true if the file exists and is a symbolic connection.

Similar Functions
Popular Articles