SplFileInfo::isDir
(PHP 5 >= 5.1.2)
SplFileInfo::isDir — تایید دایرکتوری بودن فایل
Description
public bool SplFileInfo::isDir
( void
)
این متد برای تعیین دایرکتوری بودن فایل به کار میرود.
Parameters
This function has no parameters.
Return Values
بازگرداندن TRUE اگر دایرکتوری باشد در غیر این صورت FALSE.
Examples
Example #1 مثال SplFileInfo::isDir()
<?php
$d = new SplFileInfo(dirname(__FILE__));
var_dump($d->isDir());
$d = new SplFileInfo(__FILE__);
var_dump($d->isDir());
?>
The above example will output something similar to:
bool(true) bool(false)
There are no user contributed notes for this page.
