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

search for in the

SplFileInfo::getPathname> <SplFileInfo::getPath
[edit] Last updated: Fri, 24 Jun 2011

view this page in

SplFileInfo::getPathInfo

(PHP 5 >= 5.1.2)

SplFileInfo::getPathInfoدریافت شی SplFileInfo برای مسیر

Description

public SplFileInfo SplFileInfo::getPathInfo ([ string $class_name ] )

دریافت شی SplFileInfo برای والد فایل فعلی.

Parameters

class_name

نام کلاس مشتق شده SplFileInfo برای استفاده.

Return Values

بازگرداندن شی SplFileInfo برای مسیر والد فایل.

Examples

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

<?php
$info 
= new SplFileInfo('/usr/bin/php');
$parent_info $info->getPathInfo();
var_dump($parent_info->getRealPath());
?>

The above example will output something similar to:

string(8) "/usr/bin"

See Also



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

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