SplFileInfo::getPathname

(PHP 5 >= 5.1.2, PHP 7)

SplFileInfo::getPathnameGets the path to the file

说锟斤拷

public SplFileInfo::getPathname ( void ) : string

Returns the path to the file.

锟斤拷锟斤拷

锟剿猴拷锟斤拷没锟叫诧拷锟斤拷锟斤拷

锟斤拷锟斤拷值

The path to the file.

锟斤拷锟斤拷

Example #1 SplFileInfo::getPathname() example

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

锟斤拷锟斤拷锟斤拷锟教碉拷锟斤拷锟斤拷锟斤拷锟斤拷冢锟�

string(12) "/usr/bin/php"

锟轿硷拷