downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

SplFileInfo::getMTime> <SplFileInfo::getInode
[edit] Last updated: Fri, 24 Jun 2011

view this page in

SplFileInfo::getLinkTarget

(PHP 5 >= 5.2.2)

SplFileInfo::getLinkTargetدریافت هدف پیوند

Description

public string SplFileInfo::getLinkTarget ( void )

دریافت هدف پیوند سیستم فایل.

Note:

هدف ممکن است مسیر واقعی سیستم فایل نباشد. از SplFileInfo::getRealPath() برای تعیین مسیر واقعی در سیستم فایل استفاده کنید.

Parameters

This function has no parameters.

Return Values

بازگرداندن هدف پیوند سیستم فایل.

Errors/Exceptions

ایجاد RuntimeException در صورت خطا.

Examples

Example #1 مثال SplFileInfo::getLinkTarget()

<?php
$info 
= new SplFileInfo('/Users/bbieber/workspace');
if (
$info->isLink()) {
    
var_dump($info->getLinkTarget());
    
var_dump($info->getRealPath());
}
?>

The above example will output something similar to:

string(19) "Documents/workspace"
string(34) "/Users/bbieber/Documents/workspace"

See Also



add a note add a note User Contributed Notes SplFileInfo::getLinkTarget - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites