SplFileInfo::isLink
(PHP 5 >= 5.1.2)
SplFileInfo::isLink — تایید پیوند بودن فایل
Description
public bool SplFileInfo::isLink
( void
)
این متد را استفاده کنید تا بررسی نمایید فایل به وسیله SplFileInfo ارجاع شده پیوند است یا نه.
Parameters
This function has no parameters.
Return Values
Returns TRUE if the file is a link, FALSE otherwise.
Examples
Example #1 SplFileInfo::isLink() example
<?php
$info = new SplInfo('/path/to/symlink');
if ($info->isLink()) {
echo 'The real path is '.$info->getRealPath();
}
?>
There are no user contributed notes for this page.
