(PHP 5 >= 5.1.2, PHP 7)
Gets the path to the file
public string SplFileInfo::getPathname ( void )
Returns the path to the file.
Returns:
The path to the file.
Examples:
SplFileInfo::getPathname() example
1 2 3 4 | <?php $info = new SplFileInfo( '/usr/bin/php' ); var_dump( $info ->getPathname()); ?> |
The above example will output something similar to:
string(12) "/usr/bin/php"
See also:
Please login to continue.