directoryiterator.getpathname(3) php man page | unix.com

Man Page: directoryiterator.getpathname

Operating Environment: php

Section: 3

DIRECTORYITERATOR.GETPATHNAME(3)					 1					  DIRECTORYITERATOR.GETPATHNAME(3)

DirectoryIterator::getPathname - Return path and file name of current DirectoryIterator item

SYNOPSIS
public string DirectoryIterator::getPathname (void )
DESCRIPTION
Get the path and file name of the current file.
PARAMETERS
This function has no parameters.
RETURN VALUES
Returns the path and file name of current file. Directories do not have a trailing slash.
EXAMPLES
Example #1 DirectoryIterator.getPathname(3) example <?php $iterator = new DirectoryIterator(dirname(__FILE__)); foreach ($iterator as $fileinfo) { echo $fileinfo->getPathname() . " "; } ?> The above example will output something similar to: /home/examples/. /home/examples/.. /home/examples/apple.jpg /home/examples/banana.jpg /home/examples/getpathname.php /home/examples/pear.jpg
SEE ALSO
DirectoryIterator::getBasename, DirectoryIterator::getFilename, DirectoryIterator::getPath, pathinfo(3). PHP Documentation Group DIRECTORYITERATOR.GETPATHNAME(3)
Related Man Pages
dirname(3) - php
errorexception(3) - php
limititerator(3) - php
recursivecallbackfilteriterator(3) - php
splfileinfo(3) - php
Similar Topics in the Unix Linux Community
Forum Video Tutorial: How to Use Code Tags
Please Welcome Don Cragun as Lead Moderator
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch
Denial Of Service Attack Update