SplFileInfo::isLink
Tells if the file is a link
Beschreibung
public bool SplFileInfo::isLink
( void
)
Parameter-Liste
Diese Funktion hat keine Parameter.
Rückgabewerte
Returns TRUE if the file is a link, FALSE otherwise.
Beispiele
Beispiel #1 SplFileInfo::isLink example
<?php
$info = new SplFileInfo('/path/to/symlink');
if ($info->isLink()) {
echo 'The real path is '.$info->getRealPath();
}
?>