(PHP 5 >= 5.1.2, PHP 7, PHP 8)
SplFileInfo::isLink — Tells if the file is a link
Use this method to check if the file referenced by the SplFileInfo object is a link.
Esta função não possui parâmetros.
Returns true
if the file is a link, false
otherwise.
Exemplo #1 SplFileInfo::isLink() example
<?php
$info = new SplFileInfo('/path/to/symlink');
if ($info->isLink()) {
echo 'The real path is '.$info->getRealPath();
}
?>