SplFileInfo::isFile
SplFileInfo::isReadable
SplFileInfo
PHP Manual

# SplFileInfo::isLink

(PHP 5 >= 5.1.2)

SplFileInfo::isLink — Tells if the file is a link

### 설명

public bool SplFileInfo::isLink ( void )

Use this method to check if the file referenced by the SplFileInfo object is a link.

### 인수

이 함수는 인수가 없습니다.

### 반환값

Returns `TRUE` if the file is a link, `FALSE` otherwise.

### 예제

Example #1 SplFileInfo::isLink() example

`<?php
$info = new SplInfo('/path/to/symlink');
if ($info->isLink()) {
echo 'The real path is '.$info->getRealPath();
}
?>`

### 참고

- SplFileInfo::getRealPath - Gets absolute path to file

SplFileInfo::isFile
SplFileInfo::isReadable
SplFileInfo
PHP Manual