SplFileInfo::getType
(PHP 5 >= 5.1.2)
SplFileInfo::getType — Gets file type
Açıklama
public string SplFileInfo::getType
( void
)
Returns the type of the file referenced.
Değiştirgeler
Bu işlevin değiştirgesi yoktur.
Dönen Değerler
A string representing the type of the entry. May be one of file, link, or dir
Hatalar/İstisnalar
Throws a RuntimeException on error.
Örnekler
Örnek 1 SplFileInfo::getType() example
<?php
$info = new SplFileInfo(__FILE__);
echo $info->getType().PHP_EOL;
$info = new SplFileInfo(dirname(__FILE__));
echo $info->getType();
?>
Yukarıdaki örnek şuna benzer bir çıktı üretir:
file dir
There are no user contributed notes for this page.
