Manuel PHP
SplFileInfo::isLink
(PHP 5 >= 5.1.2)
SplFileInfo::isLink — Tells if the file is a link
Description
public bool SplFileInfo::isLink
( void
)
Use this method to check if the file referenced by the SplFileInfo object is a link.
Liste de paramètres
Cette fonction ne contient aucun paramètre.
Valeurs de retour
Returns TRUE if the file is a link, FALSE otherwise.
Exemples
Exemple #1 SplFileInfo::isLink() example
- <?php
- $info = new SplInfo('/path/to/symlink');
- if ($info->isLink()) {
- echo 'The real path is '.$info->getRealPath();
- }
- ?>
Remonter 
