SplFileInfo::isLink
Tells if the file is a link
Description
public bool SplFileInfo::isLink
( void
)
Parameters
This function has no parameters.
Return Values
Returns TRUE
if the file is a link, FALSE
otherwise.
Examples
Example #1 SplFileInfo::isLink example
<?php
$info = new SplFileInfo('/path/to/symlink');
if ($info->isLink()) {
echo 'The real path is '.$info->getRealPath();
}
?>